unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Berger <felixberger@beldesign.de>
Subject: gud.el: gdb doesn't work with libtool
Date: Tue,  1 Apr 2003 23:49:19 +0200 (CEST)	[thread overview]
Message-ID: <20030401214919.DF3E3775ED@fuckdown.beldesign.de> (raw)

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	other threads:[~2003-04-01 21:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030401214919.DF3E3775ED@fuckdown.beldesign.de \
    --to=felixberger@beldesign.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).