From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#13303: 24.2.91; gdb under emacs broken for break commands Date: Sat, 29 Dec 2012 13:40:02 -0500 Message-ID: <85wqw0zoql.fsf@stephe-leake.org> References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> <851ue9doqc.fsf@stephe-leake.org> <83han5kof7.fsf@gnu.org> <85bodc27zj.fsf@stephe-leake.org> <838v8glqsa.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356806478 18606 80.91.229.3 (29 Dec 2012 18:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 18:41:18 +0000 (UTC) Cc: 13303@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 19:41:33 2012 Return-path: Envelope-to: geb-bug-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 1Tp1LY-0006pG-QY for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 19:41:25 +0100 Original-Received: from localhost ([::1]:50653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1LK-0006YK-6s for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 13:41:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1LF-0006Y5-4e for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 13:41:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tp1LC-0007J1-Vn for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 13:41:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1LC-0007Ij-Rq for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 13:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tp1M9-0006T2-N0 for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 13:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Dec 2012 18:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13303-submit@debbugs.gnu.org id=B13303.135680646924800 (code B ref 13303); Sat, 29 Dec 2012 18:42:01 +0000 Original-Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 18:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:36360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1LI-0006Rw-Rp for submit@debbugs.gnu.org; Sat, 29 Dec 2012 13:41:09 -0500 Original-Received: from qmta15.westchester.pa.mail.comcast.net ([76.96.59.228]:48447) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1LG-0006Ro-4Z for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 13:41:07 -0500 Original-Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta15.westchester.pa.mail.comcast.net with comcast id hUuf1k0081ap0As5FWg6FM; Sat, 29 Dec 2012 18:40:06 +0000 Original-Received: from TAKVER ([69.140.67.196]) by omta22.westchester.pa.mail.comcast.net with comcast id hWg51k00V4E4Fsd3iWg5jV; Sat, 29 Dec 2012 18:40:06 +0000 In-Reply-To: <838v8glqsa.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 19:19:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1356806406; bh=z7pU1rkXSiDGoDpHX/QtIs2ZBVIqFXFKojyQDJuEVY8=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=Om3EQLfIdTMAg3pIKEBPCgUENqv9x/0MXXf+bYy52G4JbJt6vhMlzixLVcGlZfZoV gbBwFg58PpT4t2aWjGTmi8APyaX4lyfrlzeFaVfwL4I68IKCg9i3ojp1oFTKcyapPy +AwRDogbZ93iM2JYy0DCAihtEzMzpSGYIOmhixU+YeSY4P7WYzUW4wXWK4/UJ3AgZ3 XimHvrtXsyDAyeRXkkl60YaBQ83psOon+CIP2HFRfOdcDPQEnHhVa0YLe5rIbkd/Lz w67C+/8H7FNKAfAQfgL4oapOtIzWfApnG+e9DmyuiJRA475lyAqUIzWMLRnIAGV/RP 1SyEIb8UiH9JA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69168 Archived-At: Eli Zaretskii writes: > It's XP SP3. Do you mean you don't get "(gdb)" after typing "end" on > Windows as well? Correct. >> Any suggestions for debugging this further? > > Perhaps turn on gdb-enable-debug, and see what you get in the > gdb-debug-log variable. That shows the failure: gdb-debug-log ((recv . "~\">\" ") (mi-send . #("-interpreter-exec console \"end\" " 27 30 (fontified t))) (recv . "~\">\" ") (mi-send . #("-interpreter-exec console \"p argc\" " 27 33 (fontified t))) (recv . "~\">\" ") (mi-send . #("-interpreter-exec console \"command 1\" " 27 36 (fontified t))) (recv . "16^error,msg=\"No registers.\" (gdb) 17^done,threads=[] (gdb) This list is in reverse chronological order; the first ">" is the prompt received after the "end". >> I've confirmed that 'end' works as expected when running gdb from a bash >> shell not under emacs. >> >> 'end' also works when running gdb in a bash shell under emacs. I guess >> that's a mostly functional workaround. >> >> 'end' works with Emacs 23, running gdb with --annotate=3; it seems >> to be the switch to -i=mi that causes the problem for me. > > What if you run GDB from the shell, but using the -i=mi switch, and > set interactive-mode off? do you see the problem then? The prompting does terminate with 'end' then. There is no output from gdb during the break command prompting: stephe@Shevek$ gdb -i=mi hello =thread-group-added,id="i1" ~"GNU gdb (GDB) 7.4.1-debian\n" ~"Copyright (C) 2012 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"i486-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"...\n" ~"Reading symbols from /home/Projects/opentoken/org.opentoken/Build/linux_release/hello..." ~"done.\n" (gdb) set interactive off &"set interactive off\n" ^done (gdb) break 4 &"break 4\n" ~"Breakpoint 1 at 0x8048415: file hello.c, line 4.\n" =breakpoint-created,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048415",func="main",file="hello.c",fullname="/home/Projects/opentoken/org.opentoken/Build/linux_release/hello.c",line="4",times="0",original-location="hello.c:4"} ^done (gdb) command 1 &"command 1\n" ~">" p argc ~">" end =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048415",func="main",file="hello.c",fullname="/home/Projects/opentoken/org.opentoken/Build/linux_release/hello.c",line="4",times="0",script={"p argc"},original-location="hello.c:4"} ^done (gdb) quit &"quit\n" So that is the expected behavior >> I did confirm that Emacs 24 no longer supports --annotate=3. > > It does, if you invoke "M-x gud-gdb RET". Another work-around, I > guess. That works; it actually runs "gdb --fullname"; that seems to be all I need. > But I still would like to find out why it doesn't work for you with > -i=mi? I'd like to know as well; I assume support for --fullname/--annotate=3 will go away at some point. Is there another (non-emacs) front-end that uses gdb -i=mi that I can try, to see if it works there? I found 'xxgdb' for Debian; it closes immediately after starting, with an unhelpful error message. I'm running via ssh -X, that may be part of the problem. Not available on Cygwin. -- -- Stephe