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

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

gud.el: gdb doesn't work with libtool


From: Felix Berger
Subject: gud.el: gdb doesn't work with libtool
Date: Tue, 1 Apr 2003 23:49:19 +0200 (CEST)

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 20.7.2 (i386-debian-linux-gnu, X toolkit)
 of Thu Apr  4 2002 on cyberhq modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr 
--sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib 
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes 
--with-x-toolkit=yes'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In order to debug binaries built with libtool support you have to invoke gdb
like this:

libtool gdb binary-to-test

instead of just:

gdb binary-to-test

Since Emacs prepends the option "-fullname" in gud-gdb-massage-args libtool is
confused and bails out.

This simple fix seemed to to do the job for me:

(defun gud-gdb-massage-args (file args)
  (append args (list "-fullname")))

It also worked for binaries having no libtool support.

Sincerely,
Felix Berger

Recent input:
C-d / h o m e / b f l a t 1 return C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n 
C-n r u n return q u i t return M-x M-p p backspace 
return C-a M-d C-e M-backspace M-backspace M-backspace 
M-backspace c v tab c tab / tab tab a r r tab return 
C-g C-g M-x M-p return backspace return M-x M-p return 
C-a C-d C-e return r u n return q u i t return C-x 
k return C-x k return M-x C-g menu-bar help-menu r
eport-emacs-bug

Recent messages:
Scanning `gud.el'
Expansion found in 'gud.el'
gud-gdb-massage-args [3 times]
Quit
Undo!
Quit [2 times]
Hit space to flush [3 times]
Searching for program: success, 
Quit [2 times]
Searching for program: success, 
Quit

-- 
Use Debian GNU/Linux!
http://www.felix.beldesign.de




reply via email to

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