* gdb in Emacs
@ 2012-10-12 4:35 Shiyuan
2012-10-12 6:47 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Shiyuan @ 2012-10-12 4:35 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
Hi all,
When I trace a program step by step in GDB under Emacs, Emacs will
switch the input focus to the source code. Can I change this behavior so
that Emacs will jump to the corresponding line in the source code but the
input focus still stay in the GDB buffer?
Thanks.
Shiyuan
[-- Attachment #2: Type: text/html, Size: 336 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in Emacs
2012-10-12 4:35 gdb in Emacs Shiyuan
@ 2012-10-12 6:47 ` Eli Zaretskii
0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2012-10-12 6:47 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Thu, 11 Oct 2012 23:35:12 -0500
> From: Shiyuan <gshy2014@gmail.com>
>
> When I trace a program step by step in GDB under Emacs, Emacs will
> switch the input focus to the source code.
It doesn't for me. Here the selected window remains the one where the
GDB interaction happens. Perhaps you could describe what you do in
more detail, starting with "emacs -Q".
Also, which version of Emacs is that?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in Emacs
@ 2012-10-12 15:27 Shiyuan
2012-10-13 8:49 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Shiyuan @ 2012-10-12 15:27 UTC (permalink / raw)
To: Eli Zaretskii, help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
>Message: 6
>Date: Fri, 12 Oct 2012 08:47:26 +0200
>From: Eli Zaretskii <eliz@gnu.org>
>To: help-gnu-emacs@gnu.org
>Subject: Re: gdb in Emacs
>Message-ID: <83bog889vl.fsf@gnu.org>
>> Date: Thu, 11 Oct 2012 23:35:12 -0500
>> From: Shiyuan <gshy2014@gmail.com>
>>
>> When I trace a program step by step in GDB under Emacs, Emacs will
>> switch the input focus to the source code.
>It doesn't for me. Here the selected window remains the one where the
>GDB interaction happens. Perhaps you could describe what you do in
>more detail, starting with "emacs -Q".
>Also, which version of Emacs is that?
I am using Emacs 23.3(9.0) in Mac OS 10.6. This is the operation sequence
which causes the problem:
1. start Emacs with -Q, open GDB under Emacs: gdb --annotate=3 program
2. set the breakpoint: b location
3. run the program: r
4. When GDB hits the breakpoint, the window splits horizontally into two
windows, one with GDB,
another one is the source code, at this time, the focus point is in GDB
window.
5. while the focus point stil remains in GDB window, open a new frame with
: Ctrl-x 5 2.
Now a new frame is created with one window and another GDB is in it.
6. Switch the focus point to source code window, Run delete other winodw:
Ctrl-X 1.
Now the source code window occupies the whole frame which was
previously splited into two windows.
Now Emacs has two frames. One frame has only GDB window, another frame
has only source code window.
Now, If I switch the focus point back to the GDB window, and keep
stepping using the GDB command "next", the focus
point will switch back to source code window automatically after each
GDB command.
Can someone verify this and tell me what might goes wrong? Thanks.
[-- Attachment #2: Type: text/html, Size: 8895 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in Emacs
2012-10-12 15:27 Shiyuan
@ 2012-10-13 8:49 ` Eli Zaretskii
2012-10-13 18:58 ` Shiyuan
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2012-10-13 8:49 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Fri, 12 Oct 2012 10:27:10 -0500
> From: Shiyuan <gshy2014@gmail.com>
>
> I am using Emacs 23.3(9.0) in Mac OS 10.6. This is the operation sequence
> which causes the problem:
> 1. start Emacs with -Q, open GDB under Emacs: gdb --annotate=3 program
> 2. set the breakpoint: b location
> 3. run the program: r
> 4. When GDB hits the breakpoint, the window splits horizontally into two
> windows, one with GDB,
> another one is the source code, at this time, the focus point is in GDB
> window.
> 5. while the focus point stil remains in GDB window, open a new frame with
> : Ctrl-x 5 2.
> Now a new frame is created with one window and another GDB is in it.
> 6. Switch the focus point to source code window, Run delete other winodw:
> Ctrl-X 1.
> Now the source code window occupies the whole frame which was
> previously splited into two windows.
> Now Emacs has two frames. One frame has only GDB window, another frame
> has only source code window.
> Now, If I switch the focus point back to the GDB window, and keep
> stepping using the GDB command "next", the focus
> point will switch back to source code window automatically after each
> GDB command.
I can confirm this behavior in both Emacs 23.3 and the current
development sources.
Please report this as a bug using "M-x report-emacs-bug RET", so that
it will get fixed, preferably for the next version 24.3.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in Emacs
2012-10-13 8:49 ` Eli Zaretskii
@ 2012-10-13 18:58 ` Shiyuan
2012-10-13 20:21 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Shiyuan @ 2012-10-13 18:58 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1658 bytes --]
Hi,
If I want to fix it, can you give me some pointers what places I
should look at? Thanks.
Shiyuan
On Sat, Oct 13, 2012 at 3:49 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Fri, 12 Oct 2012 10:27:10 -0500
> > From: Shiyuan <gshy2014@gmail.com>
> >
> > I am using Emacs 23.3(9.0) in Mac OS 10.6. This is the operation
> sequence
> > which causes the problem:
> > 1. start Emacs with -Q, open GDB under Emacs: gdb --annotate=3 program
> > 2. set the breakpoint: b location
> > 3. run the program: r
> > 4. When GDB hits the breakpoint, the window splits horizontally into two
> > windows, one with GDB,
> > another one is the source code, at this time, the focus point is in
> GDB
> > window.
> > 5. while the focus point stil remains in GDB window, open a new frame
> with
> > : Ctrl-x 5 2.
> > Now a new frame is created with one window and another GDB is in it.
> > 6. Switch the focus point to source code window, Run delete other winodw:
> > Ctrl-X 1.
> > Now the source code window occupies the whole frame which was
> > previously splited into two windows.
> > Now Emacs has two frames. One frame has only GDB window, another
> frame
> > has only source code window.
> > Now, If I switch the focus point back to the GDB window, and keep
> > stepping using the GDB command "next", the focus
> > point will switch back to source code window automatically after each
> > GDB command.
>
> I can confirm this behavior in both Emacs 23.3 and the current
> development sources.
>
> Please report this as a bug using "M-x report-emacs-bug RET", so that
> it will get fixed, preferably for the next version 24.3.
>
>
[-- Attachment #2: Type: text/html, Size: 2188 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* gdb in emacs
@ 2010-03-08 21:37 belnac
2011-05-03 19:58 ` elbeardmorez
0 siblings, 1 reply; 10+ messages in thread
From: belnac @ 2010-03-08 21:37 UTC (permalink / raw)
To: Help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Hi,
I have compiled a very simple C++ test program by issuing the command
g++ -g test.cpp -o test.so
I then issued another command to get gdb up and running
Run gdb (like this): gdb test.so
The binary loads up just fine but I'm unable to run the program. Tried
executing Run from the Gud menu and I get an error message:
Symbol's function definition is void: gud-go
I am also unable to run any commands from within gdb's frame -- after (gdb).
I can type them but nothing really happens (like r to run.)
What am I doing wrong?
I am using emacs 23 on Ubuntu 9.1.
Thanks!
--
View this message in context: http://old.nabble.com/gdb-in-emacs-tp27828012p27828012.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
[-- Attachment #2: Type: text/html, Size: 895 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in emacs
2010-03-08 21:37 gdb in emacs belnac
@ 2011-05-03 19:58 ` elbeardmorez
0 siblings, 0 replies; 10+ messages in thread
From: elbeardmorez @ 2011-05-03 19:58 UTC (permalink / raw)
To: Help-gnu-emacs
belnac wrote:
>
> Hi,
>
> I have compiled a very simple C++ test program by issuing the command
>
> <pre>g++ -g test.cpp -o test.so</pre>
>
> I then issued another command to get gdb up and running
>
> <pre>Run gdb (like this): gdb test.so</pre>
>
> The binary loads up just fine but I'm unable to run the program. Tried
> executing Run from the Gud menu and I get an error message: <pre>Symbol's
> function definition is void: gud-go</pre>
>
> I am also unable to run any commands from within gdb's frame -- after
> (gdb). I can type them but nothing really happens (like r to run.)
>
> What am I doing wrong?
>
> I am using emacs 23 on Ubuntu 9.1.
>
> Thanks!
>
hi,
just got this too. the mistake was removing the '--annotate=3' arg passed to
gdb by default.
cheers,
Pete.
--
View this message in context: http://old.nabble.com/gdb-in-emacs-tp27828012p31535919.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* gdb in emacs
@ 2002-07-02 11:02 piotr.kozaczewski
2002-07-02 11:22 ` Todd Kokoszka
0 siblings, 1 reply; 10+ messages in thread
From: piotr.kozaczewski @ 2002-07-02 11:02 UTC (permalink / raw)
Good afternoon.
I downloaded the latest WinNT version of emacs (21.2) and the latest
version of gdb (2002-04-11) for cygwin.
I tried to debug a C++ program (compiled with g++, with -g turned on)
within emacs and it did not work good enough.
gdb did neither show the breakpoints nor highlight the current source line.
I suppose, emacs cannot interpret the data being sent back from gdb,
or gdb does not send required data to emacs.
Could anybody help me?
Thanks in advance,
Piotr Kozaczewski
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdb in emacs
2002-07-02 11:02 piotr.kozaczewski
@ 2002-07-02 11:22 ` Todd Kokoszka
0 siblings, 0 replies; 10+ messages in thread
From: Todd Kokoszka @ 2002-07-02 11:22 UTC (permalink / raw)
Cc: help-gnu-emacs
I think you may get more help if you were to post to the windows emacs
group. I use gdb under emacs a lot under Unix. I usually it mostly with C
and it's been excellent.
Todd
On Tue 02 Jul 2002 at 13:02:37 +0200, piotr.kozaczewski@power.alstom.com wrote:
>
> Good afternoon.
>
> I downloaded the latest WinNT version of emacs (21.2) and the latest
> version of gdb (2002-04-11) for cygwin.
> I tried to debug a C++ program (compiled with g++, with -g turned on)
> within emacs and it did not work good enough.
> gdb did neither show the breakpoints nor highlight the current source line.
> I suppose, emacs cannot interpret the data being sent back from gdb,
> or gdb does not send required data to emacs.
> Could anybody help me?
>
> Thanks in advance,
> Piotr Kozaczewski
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
Todd Kokoszka
Developer
Mobileway France
Puteaux, France
Tel: 33(01) 41 44 30 60
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-10-13 20:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 4:35 gdb in Emacs Shiyuan
2012-10-12 6:47 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2012-10-12 15:27 Shiyuan
2012-10-13 8:49 ` Eli Zaretskii
2012-10-13 18:58 ` Shiyuan
2012-10-13 20:21 ` Eli Zaretskii
2010-03-08 21:37 gdb in emacs belnac
2011-05-03 19:58 ` elbeardmorez
2002-07-02 11:02 piotr.kozaczewski
2002-07-02 11:22 ` Todd Kokoszka
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.