From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Bothner To: Eli Zaretskii Cc: gdb@sources.redhat.com, bug-gnu-emacs@gnu.org Subject: Re: Using gdb with emacs Date: Sun, 09 Sep 2001 21:34:00 -0000 Message-id: References: <874rqfvl52.fsf@creche.redhat.com> <2593-Fri07Sep2001105921+0300-eliz@is.elta.co.il> <87elpid9dt.fsf@creche.redhat.com> <7458-Sat08Sep2001103423+0300-eliz@is.elta.co.il> <2561-Sun09Sep2001203900+0300-eliz@is.elta.co.il> X-SW-Source: 2001-09/msg00081.html "Eli Zaretskii" 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/