This is the mail archive of the gdb@sources.redhat.com 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]

Re: Using gdb with emacs


"Eli Zaretskii" <eliz@is.elta.co.il> 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/


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