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: Eli Zaretskii
Subject: Re: Using gdb with emacs
Date: Sun, 09 Sep 2001 19:15:20 +0300

> 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.



reply via email to

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