From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: rms@gnu.org Cc: tromey@redhat.com, gdb@sources.redhat.com, bug-gnu-emacs@gnu.org Subject: Re: Using gdb with emacs Date: Sun, 09 Sep 2001 09:17:00 -0000 Message-id: <8011-Sun09Sep2001191519+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> <200109091503.JAA03084@aztec.santafe.edu> X-SW-Source: 2001-09/msg00078.html > Date: Sun, 9 Sep 2001 09:03:25 -0600 (MDT) > From: Richard Stallman > > What you, in effect, want is for GUD to support relative file names > which are not relative to the default directory of the buffer from > which you set the breakpoint. This invalidates the assumptions on > which Emacs primitives such as expand-file-name and file-relative-name > base their default operation. > > These primitives use the value of the variable default-directory, > which Lisp code can easily bind. Sure, but someone should bind default-directory. Usually, when you set a breakpoint from a buffer that visits a file, the natural thing is to use that buffer's default-directory, so that's what GUD does. I think what Tom wants requires some way to tell GUD to do bind default-directory, and also to tell it what directory to bind it to. In other words, I think it's hard to expect that the existing code could be tweaked on the user level into doing what Tom wants, but it's not rocket science to change GUD to allow this mode.