From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13303: 24.2.91; gdb under emacs broken for break commands Date: Sat, 29 Dec 2012 10:17:24 +0200 Message-ID: <83vcbll1bf.fsf@gnu.org> References: <858v8hec6y.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1356769099 856 80.91.229.3 (29 Dec 2012 08:18:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 08:18:19 +0000 (UTC) Cc: 13303@debbugs.gnu.org To: Stephen Leake Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 09:18:32 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 1Torce-0005d8-HP for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 09:18:24 +0100 Original-Received: from localhost ([::1]:49703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TorcP-0007ay-NZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 03:18:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TorcM-0007YR-2Z for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 03:18:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TorcK-00076d-RF for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 03:18:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TorcK-00076Z-Ok for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 03:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TordF-000525-KN for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 03:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Dec 2012 08:19: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.135676909819289 (code B ref 13303); Sat, 29 Dec 2012 08:19:01 +0000 Original-Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 08:18:18 +0000 Original-Received: from localhost ([127.0.0.1]:35552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TorcY-000514-9a for submit@debbugs.gnu.org; Sat, 29 Dec 2012 03:18:18 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:56184) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TorcU-00050t-TW for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 03:18:16 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MFS00I009COZ300@a-mtaout20.012.net.il> for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 10:17:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFS00IR69ORXN60@a-mtaout20.012.net.il>; Sat, 29 Dec 2012 10:17:15 +0200 (IST) In-reply-to: <858v8hec6y.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il 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:69142 Archived-At: > Date: Fri, 28 Dec 2012 23:04:21 -0500 > From: Stephen Leake > > M-x gdb > Run gdb (like this): gdb -i=mi hello > > at the gdb prompt, set a breakpoint: > break hello.c:4 > > try to set commands: > command 1 > > should see a prompt, terminate by 'end'. Instead, see: > (gdb) command 1 > Type commands for breakpoint(s) 1, one per line. > End with a line saying just "end". Aren't the last 2 lines the prompt you expected to see? If not, what prompt did you expect? What do you see when you run the same GDB commands from the shell prompt? > p argc > end > p argc > end > (gdb) > > This was terminated by Menu | Signals | EOF Why did you send EOF? That command causes the debugger to quit, so what's the purpose of sending it here? > On Windows 7, the behavior is slightly different; the '>' prompt is > visible, but EOF crashes gdb. Not really a crash, at least on my XP SP3. It exits after reporting some weird error message about stdin, which is expected, since Emacs closes the debugger's stdin file descriptor. What kind of "crash" did you see on Windows 7? Anyway, the annoyance with no "> " prompt on Posix hosts is a known problem with GDB versions older than 7.5; see bug#11279. You can work around it by typing this command at the first GDB prompt: (gdb) set interactive-mode off GDB 7.5 fixed that problem, so upgrading your GDB will remove the need to use the above work-around.