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 07:31:07 -0500 Message-ID: <851ue9doqc.fsf@stephe-leake.org> References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356784328 10191 80.91.229.3 (29 Dec 2012 12:32:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 12:32:08 +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 13:32:24 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 1TovaR-0004bU-Ej for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 13:32:23 +0100 Original-Received: from localhost ([::1]:40236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TovaC-000701-Ru for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 07:32:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tova9-0006zl-Rh for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 07:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tova8-00065Q-NL for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 07:32:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tova8-00065M-JO for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 07:32:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tovb4-0004Ko-FQ for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 07:33:02 -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 12:33:02 +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.135678433316601 (code B ref 13303); Sat, 29 Dec 2012 12:33:02 +0000 Original-Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 12:32:13 +0000 Original-Received: from localhost ([127.0.0.1]:35704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TovaG-0004Ji-Ki for submit@debbugs.gnu.org; Sat, 29 Dec 2012 07:32:12 -0500 Original-Received: from qmta03.westchester.pa.mail.comcast.net ([76.96.62.32]:35584) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TovaE-0004JZ-9z for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 07:32:11 -0500 Original-Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta03.westchester.pa.mail.comcast.net with comcast id hQTA1k0041ap0As53QXBqz; Sat, 29 Dec 2012 12:31:11 +0000 Original-Received: from TAKVER ([69.140.67.196]) by omta22.westchester.pa.mail.comcast.net with comcast id hQXB1k00B4E4Fsd3iQXBdr; Sat, 29 Dec 2012 12:31:11 +0000 In-Reply-To: <83vcbll1bf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 10:17:24 +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=1356784271; bh=Pdz2f9s/43qt+IoefOhPeZcFUpuNU0n1HbLbweWXDl8=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=Lyzi56p9h+rOUfRbgnneC5WiO0WonvA9D/gOAPFn7k1nLIAMktCSta8Oy/JjIZaOD 6JMnGHgq760CWDzz5pHsxGWSjQQcpbG6FhnasugytiecLMwh9ox0XnsddnnTrxTLWD wmpFw+oVGWMS/R6OiKWlqiBEj0Ahy8KFSvDuDYLC7jn52nxoEwrtQHPxgwe9Pdr4IC vy8TBhY6Z/iRuaxzS+qZDfhYljuWdGrq4ZyEvlSPt9jFh/6LKMhLBbBwMJ6c6aAlq0 DByV2FtqZih7sWOTJu7WNFAw2dwzGl9kYTjfWO+06i74WqCiXhE0797O+CIqFpPUcN in/pla8kBDm0g== 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:69151 Archived-At: Eli Zaretskii writes: >> M-x gdb >> Run gdb (like this): gdb -i=mi hello Forgot to say the gdb version is 7.4.1-1 >> 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? Yes, but each following line should be prompted with '>'. >> p argc >> end >> p argc >> end >> (gdb) >> >> This was terminated by Menu | Signals | EOF > > Why did you send EOF? Because "end" didn't work, and I was trying other things. > That command causes the debugger to quit, so what's the purpose of > sending it here? It does cause it to quit under Windows in this situation, but not under Debian. >> 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? The same as yours; I agree "crash" is the wrong word. > 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. That does restore the "> " prompt, but it also restores EOF behavior (it now quits the debugger). So the core problem remains: there is no way to terminate prompting for new command lines, without quiting the debugger. (I realize I did not state the main problem clearly in my initial report). I have not installed gdb 7.5; it's not in Debian testing (that's at gdb 7.4), and it's not supported for my main work, which has an AdaCore support contract, with gdb 7.3. -- -- Stephe