GNU bug report logs - #557
gud/gdb not interacting properly with remote source file

Previous Next

Package: emacs;

Reported by: vapnik spaknik <vapniks <at> yahoo.com>

Date: Mon, 14 Jul 2008 03:05:06 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 557 in the body.
You can then email your comments to 557 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#557; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to vapnik spaknik <vapniks <at> yahoo.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: vapnik spaknik <vapniks <at> yahoo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: gud/gdb not interacting properly with remote source file
Date: Sun, 13 Jul 2008 19:57:28 -0700 (PDT)
[Message part 1 (text/plain, inline)]
--text follows this line--
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.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-06-19 on ninsei, modified by Debian
configured using `configure  '--build=i486-linux-gnu' '--host=i486-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=athena' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

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

I open a remote c file using tramp.
From within that buffer I do: M-x gdb
and invoke gdb on the executable associated with the c file 
(the executable contains appropriate debugging symbols)
The gud buffer opens correctly and typing "list" and "info source" 
indicates that gdb has the correct source file loaded.
I go to the source buffer in emacs and set a breakpoint using C-x <SPC>
in the gud buffer I see that the breakpoint has been set correctly.
But then when I try stepping through the code using "next", 
a new empty buffer is created whose file path (according to the buffer list) 
is similar to the path of the remote source, except that it is local, 
i.e. instead of "me <at> remote:/home/me/file.c" it is "/home/me/file.c"
Any further stepping through the code in the gud buffer brings up the new empty
buffer which contains a small white arrow in the left margin as it would 
do normally, except this time it is pointing to an empty line. 
The buffer containing the remote source file does not indicate the point of execution, 
but still allows me to set breakpoints with C-x <SPC>.

If I try debugging with a local file it works fine.





Recent input:
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> n <mouse-movement> <mouse-movement> 
<mouse-movement> <return> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <help-echo> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> M-x e m a c s - r 
e p <tab> o <tab> <M-backspace> <M-backspace> r e p 
o r t <tab> <return>

Recent messages:
Loading view...done
Loading eieio-opt (compiled; note, source file is newer)...done
call-interactively: Quit
Type M-x switch-to-buffer-other-window RET to restore the other window.  C-M-v to scroll the help.
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help. [3 times]
Mark set
Mark saved where search started [2 times]
gud-query-cmdline: Quit
Command: next 1 [3 times]
Loading emacsbug...done
[Message part 2 (text/html, inline)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#557; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Nick Roberts <nickrob <at> snap.net.nz>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 557 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Nick Roberts <nickrob <at> snap.net.nz>
To: vapnik spaknik <vapniks <at> yahoo.com>, 557 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#557: gud/gdb not interacting properly with remote source file
Date: Wed, 16 Jul 2008 09:35:02 +1200
 > In GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 ...

 > Please describe exactly what actions triggered the bug
 > and the precise symptoms of the bug:
 > 
 > I open a remote c file using tramp.
 > >From within that buffer I do: M-x gdb
 > and invoke gdb on the executable associated with the c file 
 > (the executable contains appropriate debugging symbols)
 > The gud buffer opens correctly and typing "list" and "info source" 
 > indicates that gdb has the correct source file loaded.
 > I go to the source buffer in emacs and set a breakpoint using C-x <SPC>
 > in the gud buffer I see that the breakpoint has been set correctly.
 > But then when I try stepping through the code using "next", 
 > a new empty buffer is created whose file path (according to the buffer list) 
 > is similar to the path of the remote source, except that it is local, 
 > i.e. instead of "me <at> remote:/home/me/file.c" it is "/home/me/file.c"
 > Any further stepping through the code in the gud buffer brings up the new empty
 > buffer which contains a small white arrow in the left margin as it would 
 > do normally, except this time it is pointing to an empty line. 
 > The buffer containing the remote source file does not indicate the point of execution, 
 > but still allows me to set breakpoints with C-x <SPC>.
 > 
 > If I try debugging with a local file it works fine.

This looks like Joe Bloggs (bogus e-mail address) earlier report.  It doesn't
work with Emacs 21.4 and it is necessary to upgrade to 22.2 and ensure that
Emacs picks up the version of Tramp that comes with that version of Emacs.

Can someone please close this bug and/or tell me if/how I can close it?

-- 
Nick                                           http://www.inet.net.nz/~nickrob




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to vapnik spaknik <vapniks <at> yahoo.com>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #15 received at 557-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Nick Roberts <nickrob <at> snap.net.nz>
Cc: 557-done <at> debbugs.gnu.org
Subject: Re: bug#557: gud/gdb not interacting properly with remote source file
Date: Tue, 15 Jul 2008 17:52:26 -0400
Nick Roberts wrote:

> Can someone please close this bug and/or tell me if/how I can close it?

You change the "To: 577 <at> emacsbugs" to "To: 577-done <at> emacsbugs". (I did
this in this message). See admin/notes/bugtracker.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#557; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Nick Roberts <nickrob <at> snap.net.nz>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 13 Aug 2008 14:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 17 years and 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.