Using gdb with emacs
Per Bothner
per@bothner.com
Sun Sep 9 21:34:00 GMT 2001
"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/
More information about the Gdb
mailing list