This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Filename with "./" in breakpoint command


On Tue, Dec 06, 2005 at 11:02:20PM +0200, Eli Zaretskii wrote:
> > Date: Tue, 6 Dec 2005 15:17:19 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > 
> > > I'd prefer to have a better solution to the original problem.
> > 
> > We do; use full pathnames.
> 
> I thought Vladimir didn't like it (and neither do I, frankly).

What else is there?  Not a rhetorical question, I just don't see any
alternative.  Well, we could invent unique identifers "gdb-file-1186",
"gdb-file-1187".

Vladimir's original report is for communication from an IDE to GDB.
"Find the best match" and "ask the user" aren't very helpful; the IDE
needs to unambiguously specify what file it's already opened and is
showing to the user, in a way that GDB can understand precisely what
file is meant.  Absolute pathnames seem awfully convenient for that.

For a user typing "break foo.c:54" we've already agreed on a more
useful behavior - though no promises when it will be implemented!

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]