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 10:28:16 -0500 Message-ID: <85bodc27zj.fsf@stephe-leake.org> References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> <851ue9doqc.fsf@stephe-leake.org> <83han5kof7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356794949 25988 80.91.229.3 (29 Dec 2012 15:29:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 15:29:09 +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 16:29: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 1ToyLi-0004aY-8l for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 16:29:22 +0100 Original-Received: from localhost ([::1]:37752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToyLT-0003xT-KW for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 10:29:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToyLR-0003ws-4z for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 10:29:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToyLQ-0003lA-2J for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 10:29:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToyLP-0003l5-VX for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 10:29:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ToyMM-0008Ng-LB for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 10:30: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 15:30: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.135679496432140 (code B ref 13303); Sat, 29 Dec 2012 15:30:02 +0000 Original-Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 15:29:24 +0000 Original-Received: from localhost ([127.0.0.1]:36272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToyLj-0008ML-WC for submit@debbugs.gnu.org; Sat, 29 Dec 2012 10:29:24 -0500 Original-Received: from qmta01.westchester.pa.mail.comcast.net ([76.96.62.16]:40219) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToyLf-0008MA-PE for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 10:29:21 -0500 Original-Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) by qmta01.westchester.pa.mail.comcast.net with comcast id hTPF1k0010ldTLk51TUL2W; Sat, 29 Dec 2012 15:28:20 +0000 Original-Received: from TAKVER ([69.140.67.196]) by omta04.westchester.pa.mail.comcast.net with comcast id hTUL1k0054E4Fsd3QTULbN; Sat, 29 Dec 2012 15:28:20 +0000 In-Reply-To: <83han5kof7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 14:55:56 +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=1356794900; bh=elSFjga2eCi8LK7qlzxQO30UJokgVHqQunGDMDyMgeg=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=YdB30gu52fWIPuEIiX54E8m/VzUGs+tkJQ6PjoLFEPcj9C4S3TbytV1pcUEm0xbVK BQDpUG3f0UqjLoor0ZmcW9tB2CKrGMn5esI9qR53eXnDNlfu9ghyUj9MRYHtYzzSMs S2GRFAhpa7/3IUbXvstcH2gK4wg4yuS/uihEUhnB9oQWp/T4eUfjUSAbBdsxduD1IA moL6pal446dj0Al1bbJbhofWuAUxMpWaPBXEf4j+HBV5yimPRH47bJaIt0NJyGzUac VTjsBcY0u8b0SGh11x8PbFZTPulMgTSrbHpanVCH+y92ihb0wpJ34VU1skSUpn7N1L A3sGcMAthJ+YA== 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:69157 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Cc: 13303@debbugs.gnu.org >> Date: Sat, 29 Dec 2012 07:31:07 -0500 >> >> > 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). > > I don't understand: you are supposed to end the breakpoint commands by > typing just "end" at the "> " prompt. Yes, that is what I was expecting. > It works for me with GDB 7.3 and Emacs 24.2.91 on GNU/Linux; Sigh. I hate bugs that behave differently on different machines. My GNU/Linux is Debian Testing; what are you using? What Windows are you using? I'm on Windows 7; I could try on Windows XP. > if it doesn't work for you, please tell what happens when you type > "end" to end the breakpoint commands. I get another prompt. (that's why there are two 'end's in the bug report). > So what happens when sending EOF is not really relevant here, IMO. Right. Except that it is a workaround for the bug on Debian, if I don't execute "set interactive-mode off". If it was also a workaround on Windows, I could live with it. >> So the core problem remains: there is no way to terminate prompting >> for new command lines, without quiting the debugger. > > See above: "end" works for me. Any suggestions for debugging this further? 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. I tried reading the gdb interface elisp code; it's very dense, so I didn't get very far, but I could try again. I did confirm that Emacs 24 no longer supports --annotate=3. -- -- Stephe