From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: per@bothner.com Cc: tromey@redhat.com, gdb@sources.redhat.com, bug-gnu-emacs@gnu.org Subject: Re: Using gdb with emacs Date: Sun, 09 Sep 2001 10:41:00 -0000 Message-id: <2561-Sun09Sep2001203900+0300-eliz@is.elta.co.il> 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> X-SW-Source: 2001-09/msg00080.html > From: Per Bothner > Date: 09 Sep 2001 10:15:02 -0700 > > Emacs knows the full absolute pathname of the file you are > setting a breakpoint on. It should pass that to gdb, period. If I > set a breakpoint using a fully qualified absolute filename, gdb should > be able to figure out which file I mean, period. 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? What I suggested is to tell GUD that the project directory is /home/user/project/build. Armed with that knowledge, we could modify GUD to produce a file name relative to /home/user/project/build, and the result will allow GDB to identify that file in its data base.