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: Fri, 12 Oct 2012 10:27:10 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f67050833c04cbde5274 X-Trace: ger.gmane.org 1350055653 25788 80.91.229.3 (12 Oct 2012 15:27:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 15:27:33 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 17:27:40 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 1TMh9G-0008Kd-Eh for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 17:27:38 +0200 Original-Received: from localhost ([::1]:60272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh99-0007wJ-Vl for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 11:27:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh8y-0007rG-3k for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:27:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMh8s-00083r-Rt for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:27:20 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:47359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh8q-00082u-JZ; Fri, 12 Oct 2012 11:27:12 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so3559211oag.0 for ; Fri, 12 Oct 2012 08:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Vv8snh/HXeGg4S7yTrQCBbvRgZaKBb9OjMjKkbA8D+w=; b=fSI67zFpS8gfyaCEqk2zAhVUW7qtlN2UQWprPEU1HSsvh3JuaZwHglqEHXYw8lI8ul XToCWteYikcp89rlk7zKhYY4IC3hKxLZ1HB/2OnG3kXLjm+qBgMwh3+i9T/cdedzmRjn QZUAdVGI21ehkB+jnw7pltyxraG/N41xM5CqwI4S2ppblCK8z+GrSt0CBU/LzzePUrGT a/EZ+LYfJ3szm3QSmj75ONTLt9NyLHJ2dOafuN1zP31AKj40TnPxzfAsEepRJ/jJ1q37 miDfe2L7D1wi6yFSR1skLUR/LVOPitQknzzRhusG9a+OY1ulRhoutrLeLbO3N8m1Pmln y6vg== Original-Received: by 10.60.24.232 with SMTP id x8mr3721644oef.80.1350055631028; Fri, 12 Oct 2012 08:27:11 -0700 (PDT) Original-Received: by 10.182.26.110 with HTTP; Fri, 12 Oct 2012 08:27:10 -0700 (PDT) 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:87207 Archived-At: --e89a8fb1f67050833c04cbde5274 Content-Type: text/plain; charset=ISO-8859-1 >Message: 6 >Date: Fri, 12 Oct 2012 08:47:26 +0200 >From: Eli Zaretskii >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 >> >> 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. --e89a8fb1f67050833c04cbde5274 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


>Message: 6=
>Date: Fri, 12 Oct 2= 012 08:47:26 +0200
>From: Eli Zaretskii <<= a href=3D"mailto:eliz@gnu.org" style=3D"color:rgb(17,85,204);font-family:ar= ial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">eliz@gnu.o= rg>
>To:=A0help-gnu-emacs@gnu= .org
>Subject: Re: gdb in Emacs=
>Message-ID: <83bog8= 89vl.fsf@gnu.org>

>> Date: Thu, 11 Oct 2012 23:35:12 -0500
>> From: Shiyuan <gshy2= 014@gmail.com>
>>
>> =A0 =A0 When I trace a prog= ram step by step in GDB under Emacs, =A0Emacs will
>> switch the input focus to t= he source code.

>It doesn't for me. =A0Here the selected window remains the one whe= re the
>GDB interaction happens. =A0Perh= aps 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. =A0This is the operation sequence which causes the problem:
1. start Emacs with -Q, open GD= B under Emacs: gdb --annotate=3D3 program
2. set the breakpoint: =A0b location
3. run the program: r
4. When GDB hits the breakpo= int, the window splits horizontally into two windows, one with GDB,=A0
=A0 =A0another one is the sourc= e code, =A0at this time, the focus point is in GDB =A0window.
<= div>5. while the focus point stil re= mains in GDB window, open a new frame with =A0: Ctrl-x 5 2.=A0
=A0 =A0 Now a new frame is crea= ted with one window and another GDB =A0is in it.=A0
6. Switch the focus point to source code w= indow, Run delete other winodw: Ctrl-X 1.=A0
=A0 =A0 Now the source code win= dow occupies the whole frame which was previously splited into two windows.= =A0
=A0 =A0 Now Emacs has two frame= s. One frame has only =A0GDB window, another frame has only source code win= dow.=A0
=A0 =A0 Now, If I switch the fo= cus point back to the GDB window, and keep stepping using the GDB command &= quot;next", the focus
=A0 =A0 point will switch back = to source code window automatically after each GDB command.

Can someone verify this and tell me what might goe= s wrong? Thanks.
=A0=A0=A0

--e89a8fb1f67050833c04cbde5274--