From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: gdb in Emacs Date: Sat, 13 Oct 2012 10:49:50 +0200 Message-ID: <837gqu7o41.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350118196 5142 80.91.229.3 (13 Oct 2012 08:49:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 08:49:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 10:50:03 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 1TMxQ2-0001Vz-CF for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 10:50:02 +0200 Original-Received: from localhost ([::1]:45277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxPv-0002Pz-TL for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 04:49:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxPq-0002On-QB for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 04:49:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMxPp-0001nc-1P for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 04:49:50 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:64863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxPo-0001nO-PP for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 04:49:48 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MBT00I00PEY2J00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 10:49:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBT00HB8PUYW880@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 10:49:47 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:87230 Archived-At: > 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.