all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: gdb in Emacs
Date: Fri, 12 Oct 2012 10:27:10 -0500	[thread overview]
Message-ID: <CAOm4EMtLX5HHiE7VGXRq+vUP9TN4yjz_4Zne1eZqTunnvtktjQ@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2012-10-12 15:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 15:27 Shiyuan [this message]
2012-10-13  8:49 ` gdb in Emacs Eli Zaretskii
2012-10-13 18:58   ` Shiyuan
2012-10-13 20:21     ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2012-10-12  4:35 Shiyuan
2012-10-12  6:47 ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOm4EMtLX5HHiE7VGXRq+vUP9TN4yjz_4Zne1eZqTunnvtktjQ@mail.gmail.com \
    --to=gshy2014@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.