Filename with "./" in breakpoint command

Daniel Jacobowitz drow@false.org
Tue Dec 6 04:55:00 GMT 2005


On Tue, Dec 06, 2005 at 06:27:37AM +0200, Eli Zaretskii wrote:
> > Date: Mon, 5 Dec 2005 13:55:56 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Vladimir Prus <ghost@cs.msu.su>, gdb@sources.redhat.com
> > 
> > Or, when the existing lookups have failed for a relative pathname,
> > canonicalize it and treat it like a full path?
> 
> I don't like that, since it requires to chdir to some directory first.

Could you explain why not?  GDB already has a notion of $cdir, and it
seems logical to me that if the user types "./foo.c" they mean for that
to be relative to $cdir, but I certainly could be missing something.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Gdb mailing list