libtool
[Top][All Lists]
Advanced

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

Re: running libtool from emacs gud mode


From: Justin Randall
Subject: Re: running libtool from emacs gud mode
Date: Tue, 26 Aug 2003 11:01:44 -0500 (CDT)
User-agent: SquirrelMail/1.4.1

applying this to gud.el, deleting gud.elc should solve it for anyone
that's interested.

310,311c310
<   (cons "-cd" (cons (expand-file-name default-directory)
<                   (cons "-fullname" args))))
---
>   (append args (list "-cd" (expand-file-name default-directory)
"-fullname" )))

I've tested this running the usual usage
gdb <target>
gdb <target> <corefile>
and with libtool targets
libtool gdb <target> <corefile>

from M-x gdb and they both appear to work fine with gdb 5.3 and emacs 21.3.

Emacs gud.el inserts arguments after "gdb" and before "args"
gdb <emacs specific args> <target>
which confuses libtool. It would execute as
libtool <emacs specific args> gdb <target>.

This change will spawn gdb as
gdb <target> <emacs specific args>
and
libtool gdb <target> <emacs specific targets>

I'm sure there's some rationale for inserting args instead of appending
for gud mode, but the -cd and -fullname options for gdb may be safely
appended in the argument list.





reply via email to

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