emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs gud does not work with libtool


From: Nick Roberts
Subject: Re: emacs gud does not work with libtool
Date: Sat, 11 Oct 2003 23:50:45 +0100

Emacs in CVS doesn't inject -cd <directory> after the first argument.
Here's a patch (for Emacs in CVS so I've cc'd it to address@hidden)
Does it do the right thing?

Nick

*** gud.el.~1.10.~      2003-09-30 18:53:05.000000000 +0100
--- gud.el      2003-10-11 23:40:42.000000000 +0100
***************
*** 2337,2342 ****
--- 2337,2344 ----
         ;; and put t in its place.
         ;; Later on we will put the modified file name arg back there.
         (file-word (let ((w (cdr words)))
+                     (unless (= ?- (aref (car w) 0))
+                       (setq w (cdr w)))
                      (while (and w (= ?- (aref (car w) 0)))
                        (setq w (cdr w)))
                      (and w


Justin Randall writes:
 > On Saturday 11 October 2003 01:25 pm, you wrote:
 > >  > Emacs 21.3.1 seems to be even more convuluted regarding gdb and libtool
 > >  > created programs. Will GNU Emacs ever work with GNU auto-tools created
 > >  > programs?
 > >
 > > I've followed some of this thread but I don't work with GNU auto-tools or
 > > libtool, in particular. However, I am quite familiar with gud.el, so
 > > perhaps we can work this one out together.
 > >
 > > What is the current behaviour in Emacs?
 > The current behavior is that gdb is invoked assuming that it is the first 
 > command received from M-x gdb. I invoke gdb as 'libtool gdb <program>
 > the gud injects a -cd <directory> after the first agrument. For libtool this 
 > doesn't make sense, so it turns out to be libtool -cd <dir> gdb <exec name>
 > 
 > This is not the behavior I want. Previously, I modified the el to append the 
 > -cd <dir> after any other arguments, which worked fine for my purposes. 
 > Someone else posted a short script to the list to resolve my problem that 
 > encapsulated the whole process so that the gud mangled args would still work.
 > 
 > > What would you like to happen?
 > >
 > >
 > > Nick




reply via email to

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