This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Using gdb with emacs
- To: tromey at redhat dot com
- Subject: Re: Using gdb with emacs
- From: Per Bothner <per at bothner dot com>
- Date: 06 Sep 2001 19:56:37 -0700
- Cc: Gdb List <gdb at sources dot redhat dot com>, Emacs Bug List <bug-gnu-emacs at prep dot ai dot mit dot edu>
- References: <874rqfvl52.fsf@creche.redhat.com>
Tom Tromey <tromey@redhat.com> writes:
> I think it would be reasonable for gdb to do path canonicalization on
> file names. I think that would let the proposed Emacs change work
> correctly.
The way it used to be was that Gcc would emit two top-level filename
stabs: One for the filename as specified on the command line, and one
for the current working directory. That lets gdb match the intended
file somewhat intelligently. It is possible this is broken, in
either gcc or gdb. Its is also possible that this logic may be
unsupported for some debugging formats.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/