From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Re: gdb in Emacs Date: Sat, 13 Oct 2012 13:58:55 -0500 Message-ID: References: <837gqu7o41.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f8d26537ea04cbf5655e X-Trace: ger.gmane.org 1350154748 21176 80.91.229.3 (13 Oct 2012 18:59:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 18:59:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 20:59:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TN6vX-0000AC-TV for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 20:59:12 +0200 Original-Received: from localhost ([::1]:45584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN6vR-0007rv-Bj for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 14:59:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN6vL-0007rc-3i for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 14:59:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN6vJ-0000dY-RW for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 14:58:59 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:51605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN6vI-0000dE-C3; Sat, 13 Oct 2012 14:58:56 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so4574505oag.0 for ; Sat, 13 Oct 2012 11:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IAKJX8kfcG0/KrusONX/qYoBwX8obmrXVSIH1lSH9yA=; b=QTSfesfn+M73Sf0kCMn4nQAH0T60joke9/AWISxvcc/RKee22paCemH2RZiVpjhX+g zZ0JCUSnrYm5I7Ds5AbGdiTLuNNMvv9EgpcvRzMJaiSRmrDvJHCZsjD3HNaSZbG8KcdS qR28dk+yEzq0kUegWnhN5ZZP9qiKfIMb8Jcgdjq9ncDQyFtVleVVrXIzjgT5Fpu2sk6H eUJ3gkF7KXZYshf68Ati7iNMJeEY+gIauoFXjSS5xj1u8wdjeCz46l5XJDlppFHGI6Nd Maul5n8oLeI41JFnSWrtKJTl1OwZD+k75JxWFPb0c4Hd5eydrtnGH2xfNcKGIjlAAEBb o5Ow== Original-Received: by 10.60.26.72 with SMTP id j8mr322527oeg.68.1350154735400; Sat, 13 Oct 2012 11:58:55 -0700 (PDT) Original-Received: by 10.182.26.110 with HTTP; Sat, 13 Oct 2012 11:58:55 -0700 (PDT) In-Reply-To: <837gqu7o41.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.219.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87249 Archived-At: --e89a8fb1f8d26537ea04cbf5655e Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > > Date: Fri, 12 Oct 2012 10:27:10 -0500 > > From: Shiyuan > > > > 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. > > --e89a8fb1f8d26537ea04cbf5655e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=A0
=A0 =A0 If I want to fix it, =A0can you give me some pointers wh= at places I should look at? Thanks.=A0

Shiyuan=A0<= br>
On Sat, Oct 13, 2012 at 3:49 AM, Eli Zare= tskii <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. =A0This is the operation se= quence
> which causes the problem:
> 1. start Emacs with -Q, open GDB under Emacs: gdb --annotate=3D3 progr= am
> 2. set the breakpoint: =A0b location
> 3. run the program: r
> 4. When GDB hits the breakpoint, the window splits horizontally into t= wo
> windows, one with GDB,
> =A0 =A0another one is the source code, =A0at this time, the focus poin= t is in GDB
> =A0window.
> 5. while the focus point stil remains in GDB window, open a new frame = with
> =A0: Ctrl-x 5 2.
> =A0 =A0 Now a new frame is created with one window and another GDB =A0= is in it.
> 6. Switch the focus point to source code window, Run delete other wino= dw:
> Ctrl-X 1.
> =A0 =A0 Now the source code window occupies the whole frame which was<= br> > previously splited into two windows.
> =A0 =A0 Now Emacs has two frames. One frame has only =A0GDB window, an= other frame
> has only source code window.
> =A0 =A0 Now, If I switch the focus point back to the GDB window, and k= eep
> stepping using the GDB command "next", the focus
> =A0 =A0 point will switch back to source code window automatically aft= er 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.


--e89a8fb1f8d26537ea04cbf5655e--