This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using gdb with emacs


> Date: Sun, 9 Sep 2001 09:03:25 -0600 (MDT)
> From: Richard Stallman <rms@gnu.org>
> 
>     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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]