This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Using gdb with emacs
"Eli Zaretskii" <eliz@is.elta.co.il> writes:
> I don't see how can GDB do what you want; perhaps I'm missing
> something.
>
> The debug info recorded in the executable says that one of the source
> files is ../foo/bar/baz.c. How can GDB know that a file you are
> visiting, whose absolute file name is /home/user/project/foo/bar/baz.c,
> is that file?
Because gcc, for each .o file (at least when using stabs) emits
*both* the relative filename *and* the current working directory.
So gdb can calculete the absolute filename.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/