From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Bothner To: Eli Zaretskii Cc: tromey@redhat.com, gdb@sources.redhat.com, bug-gnu-emacs@gnu.org Subject: Re: Using gdb with emacs Date: Sun, 09 Sep 2001 10:04:00 -0000 Message-id: References: <874rqfvl52.fsf@creche.redhat.com> <2593-Fri07Sep2001105921+0300-eliz@is.elta.co.il> <87elpid9dt.fsf@creche.redhat.com> <7458-Sat08Sep2001103423+0300-eliz@is.elta.co.il> X-SW-Source: 2001-09/msg00079.html "Eli Zaretskii" writes: > - A modification of the set breakpoint commands whereby it will > first try to use file names relative to the project directory if > that directory is set, and if that fails, fall back on the > basename, like it does today. This probably calls for a new > %something specifier, which will trigger this modified behavior, > since you probably don't want to change the semantics of %f. The concept of a "project directory" may be useful, but it is not appropriate for setting a breakpoint on a known file in an Emacs window. Emacs knows the full absolute pathname of the file you are setting a breakpoint on. It should pass that to gdb, period. If I set a breakpoint using a fully qualified absolute filename, gdb should be able to figure out which file I mean, period. -- --Per Bothner per@bothner.com http://www.bothner.com/per/