Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
gdb in Emacs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shiyuan  
View profile  
 More options Oct 12 2012, 12:35 am
Newsgroups: gnu.emacs.help
From: Shiyuan <gshy2...@gmail.com>
Date: Thu, 11 Oct 2012 23:35:12 -0500
Local: Fri, Oct 12 2012 12:35 am
Subject: gdb in Emacs

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 12 2012, 2:47 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Fri, 12 Oct 2012 08:47:26 +0200
Local: Fri, Oct 12 2012 2:47 am
Subject: Re: gdb in Emacs

> Date: Thu, 11 Oct 2012 23:35:12 -0500
> From: Shiyuan <gshy2...@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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shiyuan  
View profile  
 More options Oct 12 2012, 11:27 am
Newsgroups: gnu.emacs.help
From: Shiyuan <gshy2...@gmail.com>
Date: Fri, 12 Oct 2012 10:27:10 -0500
Local: Fri, Oct 12 2012 11:27 am
Subject: Re: gdb in Emacs

>Message: 6
>Date: Fri, 12 Oct 2012 08:47:26 +0200
>From: Eli Zaretskii <e...@gnu.org>
>To: help-gnu-em...@gnu.org
>Subject: Re: gdb in Emacs
>Message-ID: <83bog889vl....@gnu.org>
>> Date: Thu, 11 Oct 2012 23:35:12 -0500
>> From: Shiyuan <gshy2...@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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 13 2012, 4:49 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 13 Oct 2012 10:49:50 +0200
Local: Sat, Oct 13 2012 4:49 am
Subject: Re: gdb in Emacs

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shiyuan  
View profile  
 More options Oct 13 2012, 2:59 pm
Newsgroups: gnu.emacs.help
From: Shiyuan <gshy2...@gmail.com>
Date: Sat, 13 Oct 2012 13:58:55 -0500
Local: Sat, Oct 13 2012 2:58 pm
Subject: Re: gdb in Emacs

Hi,
    If I want to fix it,  can you give me some pointers what places I
should look at? Thanks.

Shiyuan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 13 2012, 4:21 pm
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 13 Oct 2012 22:21:03 +0200
Local: Sat, Oct 13 2012 4:21 pm
Subject: Re: gdb in Emacs

> Date: Sat, 13 Oct 2012 13:58:55 -0500
> From: Shiyuan <gshy2...@gmail.com>
> Cc: help-gnu-em...@gnu.org

>     If I want to fix it,  can you give me some pointers what places I
> should look at?

In gud.el, I guess.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »