bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using gdb with emacs


From: Per Bothner
Subject: Re: Using gdb with emacs
Date: 09 Sep 2001 21:45:00 -0700
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor)

"Eli Zaretskii" <address@hidden> 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
address@hidden   http://www.bothner.com/per/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]