* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
@ 2011-09-05 8:54 Πρεκατές Αλέξανδρος
2019-10-03 16:22 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Πρεκατές Αλέξανδρος @ 2011-09-05 8:54 UTC (permalink / raw)
To: 9441
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2011-09-05 8:54 bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command Πρεκατές Αλέξανδρος
@ 2019-10-03 16:22 ` Lars Ingebrigtsen
2019-10-03 17:17 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-03 16:22 UTC (permalink / raw)
To: Πρεκατές Αλέξανδρος
Cc: 9441
Πρεκατές Αλέξανδρος <aprekates@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-03 16:22 ` Lars Ingebrigtsen
@ 2019-10-03 17:17 ` Eli Zaretskii
2019-10-07 3:35 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-10-03 17:17 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: aprekates, 9441
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 03 Oct 2019 18:22:34 +0200
> Cc: 9441@debbugs.gnu.org
>
> Πρεκατές Αλέξανδρος <aprekates@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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-03 17:17 ` Eli Zaretskii
@ 2019-10-07 3:35 ` Lars Ingebrigtsen
2019-10-07 5:15 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-07 3:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: aprekates, 9441
Eli Zaretskii <eliz@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-07 3:35 ` Lars Ingebrigtsen
@ 2019-10-07 5:15 ` Eli Zaretskii
2019-10-07 5:18 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-10-07 5:15 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: aprekates, 9441
On October 7, 2019 6:35:22 AM GMT+03:00, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Eli Zaretskii <eliz@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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-07 5:15 ` Eli Zaretskii
@ 2019-10-07 5:18 ` Lars Ingebrigtsen
2019-10-07 5:39 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-07 5:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: aprekates, 9441
Eli Zaretskii <eliz@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-07 5:18 ` Lars Ingebrigtsen
@ 2019-10-07 5:39 ` Eli Zaretskii
2019-10-07 5:43 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-10-07 5:39 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: aprekates, 9441
On October 7, 2019 8:18:48 AM GMT+03:00, Lars Ingebrigtsen <larsi@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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command
2019-10-07 5:39 ` Eli Zaretskii
@ 2019-10-07 5:43 ` Lars Ingebrigtsen
0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-07 5:43 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: aprekates, 9441
Eli Zaretskii <eliz@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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-10-07 5:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-05 8:54 bug#9441: in GUD, gdb mode, src buffer wont show with gdb's file command Πρεκατές Αλέξανδρος
2019-10-03 16:22 ` Lars Ingebrigtsen
2019-10-03 17:17 ` Eli Zaretskii
2019-10-07 3:35 ` Lars Ingebrigtsen
2019-10-07 5:15 ` Eli Zaretskii
2019-10-07 5:18 ` Lars Ingebrigtsen
2019-10-07 5:39 ` Eli Zaretskii
2019-10-07 5:43 ` Lars Ingebrigtsen
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).