GNU bug report logs - #9441
Add GUD support for gdb's 'file' command

Previous Next

Package: emacs;

Reported by: Πρεκατές Αλέξανδρος <aprekates <at> gmail.com>

Date: Mon, 5 Sep 2011 18:21:01 UTC

Severity: wishlist

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.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 9441 in the body.
You can then email your comments to 9441 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 05 Sep 2011 18:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Πρεκατές Αλέξανδρος <aprekates <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 05 Sep 2011 18:21:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Πρεκατές Αλέξανδρος
	<aprekates <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: in GUD, gdb mode,  src buffer wont show with gdb's file command
Date: Mon, 5 Sep 2011 11:54:17 +0300
in GUD if i try to open an executable with 'file' commmand from within gdb 
buffer, then src file wont open. but if put the file as argument to gdb in the 
start (after M-x gdb) then it'll'show.


aprekates


In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-12-11 on brahms, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'x86_64-linux-gnu' '--build' 'x86_64-
linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' 
'--localstatedir=/var/lib' '--infodir=/usr/share/info' '--
mandir=/usr/share/man' '--with-pop=yes' '--enable-
locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-
lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-
lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--
with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-
gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

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: el_GR.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t




Changed bug title to 'Add GUD support for gdb's 'file' command' from 'in GUD, gdb mode, src buffer wont show with gdb's file command' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 13 Sep 2011 21:14:01 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 13 Sep 2011 21:14:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Thu, 03 Oct 2019 16:23:01 GMT) Full text and rfc822 format available.

Message #12 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Πρεκατές Αλέξανδρος
 <aprekates <at> gmail.com>
Cc: 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode,  src buffer wont show with gdb's
 file command
Date: Thu, 03 Oct 2019 18:22:34 +0200
Πρεκατές Αλέξανδρος <aprekates <at> gmail.com> writes:

> in GUD if i try to open an executable with 'file' commmand from within
> gdb buffer, then src file wont open. but if put the file as argument
> to gdb in the start (after M-x gdb) then it'll'show.

(I'm going through old Emacs bug reports that unfortunately got no
response at the time.)

I'm not quite sure what you mean here.  If I say

`M-x gdb RET gdb -i=mi src/emacs'

or

`M-x gdb RET gdb -i=mi'

and then

file src/emacs

in the gud buffer the result look identical to me.

Do you have a more complete recipe for how to reproduce this error?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 03 Oct 2019 16:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Thu, 03 Oct 2019 17:18:02 GMT) Full text and rfc822 format available.

Message #17 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode,
 src buffer wont show with gdb's file command
Date: Thu, 03 Oct 2019 20:17:35 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 03 Oct 2019 18:22:34 +0200
> Cc: 9441 <at> debbugs.gnu.org
> 
> Πρεκατές Αλέξανδρος <aprekates <at> gmail.com> writes:
> 
> > in GUD if i try to open an executable with 'file' commmand from within
> > gdb buffer, then src file wont open. but if put the file as argument
> > to gdb in the start (after M-x gdb) then it'll'show.
> 
> (I'm going through old Emacs bug reports that unfortunately got no
> response at the time.)
> 
> I'm not quite sure what you mean here.  If I say
> 
> `M-x gdb RET gdb -i=mi src/emacs'
> 
> or
> 
> `M-x gdb RET gdb -i=mi'
> 
> and then
> 
> file src/emacs
> 
> in the gud buffer the result look identical to me.

He was using "M-x gud-gdb", which works slightly differently.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 07 Oct 2019 03:36:01 GMT) Full text and rfc822 format available.

Message #20 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode, src buffer wont show with gdb's
 file command
Date: Mon, 07 Oct 2019 05:35:22 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> > in GUD if i try to open an executable with 'file' commmand from within
>> > gdb buffer, then src file wont open. but if put the file as argument
>> > to gdb in the start (after M-x gdb) then it'll'show.

[...]

> He was using "M-x gud-gdb", which works slightly differently.

I tried with

`M-x gdb --fullname src/emacs RET'

and

`M-x gdb --fullname RET'
file src/emacs

and...  The results aren't identical, but I'm not quite sure what's
meant by "then src file wont open".  I don't get a source file in any
case anywhere.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 07 Oct 2019 05:16:02 GMT) Full text and rfc822 format available.

Message #23 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode,
 src buffer wont show with gdb's file command
Date: Mon, 07 Oct 2019 08:15:02 +0300
On October 7, 2019 6:35:22 AM GMT+03:00, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > He was using "M-x gud-gdb", which works slightly differently.
> 
> I tried with
> 
> `M-x gdb --fullname src/emacs RET'
> 
> and
> 
> `M-x gdb --fullname RET'
> file src/emacs
> 
> and...  The results aren't identical, but I'm not quite sure what's
> meant by "then src file wont open".  I don't get a source file in any
> case anywhere.

I meant to invoke "M-x gud-gdb" literally.  It's a different command, and the difference is not just in switches passed to GDB.

If the source file is not displayed immediately, try starting the program, with the "start" command typed at the GDB prompt.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 07 Oct 2019 05:19:01 GMT) Full text and rfc822 format available.

Message #26 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode, src buffer wont show with gdb's
 file command
Date: Mon, 07 Oct 2019 07:18:48 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I tried with
>> 
>> `M-x gdb --fullname src/emacs RET'
>> 
>> and
>> 
>> `M-x gdb --fullname RET'
>> file src/emacs
>> 
>> and...  The results aren't identical, but I'm not quite sure what's
>> meant by "then src file wont open".  I don't get a source file in any
>> case anywhere.
>
> I meant to invoke "M-x gud-gdb" literally.  It's a different command,
> and the difference is not just in switches passed to GDB.

Sorry, I just typed wrong up here -- I tried the `M-x gud-gdb' command
in the examples.

> If the source file is not displayed immediately, try starting the
> program, with the "start" command typed at the GDB prompt.

Yes, when I say "start", Emacs pops up the emacs.c buffer.  Nice.  :-)

But this also works when I start without a file name, and then say "file
src/emacs" after gdb has started.

So I guess this bug has been fixed?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 07 Oct 2019 05:40:02 GMT) Full text and rfc822 format available.

Message #29 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode,
 src buffer wont show with gdb's file command
Date: Mon, 07 Oct 2019 08:39:04 +0300
On October 7, 2019 8:18:48 AM GMT+03:00, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> 
> Yes, when I say "start", Emacs pops up the emacs.c buffer.  Nice.  :-)
> 
> But this also works when I start without a file name, and then say
> "file
> src/emacs" after gdb has started.
> 
> So I guess this bug has been fixed?

Looks like it was fixed, yes.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9441; Package emacs. (Mon, 07 Oct 2019 05:44:01 GMT) Full text and rfc822 format available.

Message #32 received at 9441 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: aprekates <at> gmail.com, 9441 <at> debbugs.gnu.org
Subject: Re: bug#9441: in GUD, gdb mode, src buffer wont show with gdb's
 file command
Date: Mon, 07 Oct 2019 07:43:39 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Looks like it was fixed, yes.

OK; closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 9441 <at> debbugs.gnu.org and Πρεκατές Αλέξανδρος <aprekates <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 07 Oct 2019 05:44:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Nov 2019 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 174 days ago.

Previous Next


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