From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 28 23:05:37 2012 Received: (at submit) by debbugs.gnu.org; 29 Dec 2012 04:05:38 +0000 Received: from localhost ([127.0.0.1]:35429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tong1-0007ND-Ba for submit@debbugs.gnu.org; Fri, 28 Dec 2012 23:05:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35202) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tonfy-0007N4-4M for submit@debbugs.gnu.org; Fri, 28 Dec 2012 23:05:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tonf2-0000qt-9b for submit@debbugs.gnu.org; Fri, 28 Dec 2012 23:04:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:44686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tonf2-0000qp-5v for submit@debbugs.gnu.org; Fri, 28 Dec 2012 23:04:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Toney-0001uI-7z for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:04:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tonew-0000ps-Pz for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:04:32 -0500 Received: from qmta01.westchester.pa.mail.comcast.net ([76.96.62.16]:49824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tonew-0000pd-Ik for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:04:30 -0500 Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta01.westchester.pa.mail.comcast.net with comcast id hFze1k0010xGWP851G4Sq2; Sat, 29 Dec 2012 04:04:26 +0000 Received: from TAKVER ([69.140.67.196]) by omta12.westchester.pa.mail.comcast.net with comcast id hG4R1k00G4E4Fsd3YG4Rj7; Sat, 29 Dec 2012 04:04:26 +0000 Date: Fri, 28 Dec 2012 23:04:21 -0500 Message-Id: <858v8hec6y.fsf@stephe-leake.org> From: Stephen Leake To: bug-gnu-emacs@gnu.org Subject: 24.2.91; gdb under emacs broken for break commands DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1356753866; bh=0A8Hr7J9RsmGCQnawt7FxaB0mixwoaxlJ2m/MB3TGeg=; h=Received:Received:Date:Message-Id:From:To:Subject; b=qM1LnkrPQNoMBfoYnB29zaZ/jQwTPnE5z9HNfZHtMJe26n3Tx9B4dsMrhimgL+xW6 n9FjM1bpCUojDYiBDeKVIRRSm0jS1hVIVoE2taO1btpATsxNH5KZJ2yVUXHTZyoFFd 4M05m7XPOHg4vBHzhYujrgdmqWhFYTCWlSYpBEzYNUjeFriq3oR6n9lLommQd4V1LY QQ40ebMGy0vOSXekIsqUQ+EW3K7VslcdWNoA23oKPXCFi6Jbz1j0/gfEh/Lb1drXD9 VF6F9U6Hts6BE4KjTf1I3qd/YtG6jRT76B4rhSfvq4eD9CN2cZH3EkG5HFZKNYE5YG 21QYVw0ma9bDg== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': create file hello.c: #include int main (int argc, char *argv[]) { printf ("hello world\n"); return 0; } /* end main */ compile it, with gcc (Debian 4.7.2-4) 4.7.2: gcc -g -o hello hello.c run it: ./hello debug it: 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". p argc end p argc end (gdb) This was terminated by Menu | Signals | EOF On Windows 7, the behavior is slightly different; the '>' prompt is visible, but EOF crashes gdb. In GNU Emacs 24.2.91.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-12-28 on Shevek Windowing system distributor `The Cygwin/X Project', version 11.0.11301000 System Description: Debian GNU/Linux testing (wheezy) Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: w SPC w o r l d " ) ; { } C-x C-s C-x 2 M-x s h e l l l s SPC * . c g c c SPC h e l l o w . . c . / h e l l o l s . / a . o u t C-x o \ n M-x r e v i e e r t - b u f f e r y e s \ n C-x C-s C-x o M-x g d b C-g g c c - g SPC - o SPC h e l l o SPC . / h e l l o r m SPC a . o u t M-x g d b h e l l o C-x p b r e a k SPC h e l l o w . . c : C-x o C-x o 4 c o m m a n d SPC 1 p SPC a r g c e n d M-x b u g - r e p r e p o r t Recent messages: History item: 1 hello.c changed on disk; really edit the buffer? (y, n, r or C-h) n ask-user-about-supersession-threat: File changed on disk: /home/Projects/opentoken/org.opentoken/Build/linux_release/hello.c Saving file /home/Projects/opentoken/org.opentoken/Build/linux_release/hello.c... Wrote /home/Projects/opentoken/org.opentoken/Build/linux_release/hello.c Quit History item: 1 History item: 2 History item: 3 History item: 4 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete cc-langs cl cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ada-mode advice help-fns cl-lib advice-preload easymenu compile which-func imenu align find-file gdb-mi bindat json gud easy-mmode comint ansi-color ring vc-dispatcher vc-mtn make-mode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 03:18:18 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 08:18:18 +0000 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 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 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) 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) Date: Sat, 29 Dec 2012 10:17:24 +0200 From: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands In-reply-to: <858v8hec6y.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il To: Stephen Leake Message-id: <83vcbll1bf.fsf@gnu.org> References: <858v8hec6y.fsf@stephe-leake.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 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". [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 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". [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4990] > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 07:32:13 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 12:32:13 +0000 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 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 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 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 From: Stephen Leake To: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> Date: Sat, 29 Dec 2012 07:31:07 -0500 In-Reply-To: <83vcbll1bf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 10:17:24 +0200") Message-ID: <851ue9doqc.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 07:57:04 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 12:57:04 +0000 Received: from localhost ([127.0.0.1]:35721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TovyK-0004s1-7p for submit@debbugs.gnu.org; Sat, 29 Dec 2012 07:57:04 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:44718) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TovyG-0004ra-RR for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 07:57:02 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MFS00L00MHVE700@a-mtaout20.012.net.il> for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 14:55:47 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFS00LFPMKYBP10@a-mtaout20.012.net.il>; Sat, 29 Dec 2012 14:55:47 +0200 (IST) Date: Sat, 29 Dec 2012 14:55:56 +0200 From: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands In-reply-to: <851ue9doqc.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il To: Stephen Leake Message-id: <83han5kof7.fsf@gnu.org> References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> <851ue9doqc.fsf@stephe-leake.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 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). [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4986] X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > 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. It works for me with GDB 7.3 and Emacs 24.2.91 on GNU/Linux; if it doesn't work for you, please tell what happens when you type "end" to end the breakpoint commands. So what happens when sending EOF is not really relevant here, IMO. (That command only works on GNU/Linux at the top level, not during specification of breakpoint commands.) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 10:29:24 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 15:29:24 +0000 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 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 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 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 From: Stephen Leake To: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands References: <858v8hec6y.fsf@stephe-leake.org> <83vcbll1bf.fsf@gnu.org> <851ue9doqc.fsf@stephe-leake.org> <83han5kof7.fsf@gnu.org> Date: Sat, 29 Dec 2012 10:28:16 -0500 In-Reply-To: <83han5kof7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 14:55:56 +0200") Message-ID: <85bodc27zj.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 12:20:44 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 17:20:45 +0000 Received: from localhost ([127.0.0.1]:36321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp05U-0003ev-GW for submit@debbugs.gnu.org; Sat, 29 Dec 2012 12:20:44 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:32971) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp05R-0003ek-To for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 12:20:43 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MFS00000YREFB00@a-mtaout20.012.net.il> for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 19:19:23 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFS000ZAYSBF400@a-mtaout20.012.net.il>; Sat, 29 Dec 2012 19:19:23 +0200 (IST) Date: Sat, 29 Dec 2012 19:19:33 +0200 From: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands In-reply-to: <85bodc27zj.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il To: Stephen Leake Message-id: <838v8glqsa.fsf@gnu.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> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Stephen Leake > Cc: 13303@debbugs.gnu.org > Date: Sat, 29 Dec 2012 10:28:16 -0500 > > > 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? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4977] X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > From: Stephen Leake > Cc: 13303@debbugs.gnu.org > Date: Sat, 29 Dec 2012 10:28:16 -0500 > > > 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? It's Trisquel, the machine is fencepost.gnu.org. I think this is some variety of Ubuntu, but I don't know enough about genealogy of Linux distributions to tell. In any case, GDB 7.3 on that system was built by me, it's not something that came with the OS. > What Windows are you using? I'm on Windows 7; I could try on Windows XP. It's XP SP3. Do you mean you don't get "(gdb)" after typing "end" on Windows as well? > Any suggestions for debugging this further? Perhaps turn on gdb-enable-debug, and see what you get in the gdb-debug-log variable. > 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? > 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. But I still would like to find out why it doesn't work for you with -i=mi? From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 12:55:16 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 17:55:16 +0000 Received: from localhost ([127.0.0.1]:36333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp0cu-0004vh-1T for submit@debbugs.gnu.org; Sat, 29 Dec 2012 12:55:16 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:41775) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp0cs-0004vY-IB for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 12:55:15 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MFS00500ZL2D700@a-mtaout23.012.net.il> for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 19:54:06 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFT0051L0E5ED00@a-mtaout23.012.net.il>; Sat, 29 Dec 2012 19:54:06 +0200 (IST) Date: Sat, 29 Dec 2012 19:54:15 +0200 From: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands In-reply-to: <85bodc27zj.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il To: Stephen Leake Message-id: <8338yolp6g.fsf@gnu.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> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Stephen Leake > Cc: 13303@debbugs.gnu.org > Date: Sat, 29 Dec 2012 10:28:16 -0500 > > > 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. Btw, does the problem happen for you in "emacs -Q"? From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 13:41:09 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 18:41:09 +0000 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 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 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 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 From: Stephen Leake To: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands 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> Date: Sat, 29 Dec 2012 13:40:02 -0500 In-Reply-To: <838v8glqsa.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2012 19:19:33 +0200") Message-ID: <85wqw0zoql.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 13:57:50 2012 Received: (at 13303) by debbugs.gnu.org; 29 Dec 2012 18:57:50 +0000 Received: from localhost ([127.0.0.1]:36371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1bR-0006oX-OP for submit@debbugs.gnu.org; Sat, 29 Dec 2012 13:57:50 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:45537) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1bO-0006oN-A7 for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 13:57:47 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MFT0050030GNQ00@a-mtaout23.012.net.il> for 13303@debbugs.gnu.org; Sat, 29 Dec 2012 20:56:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFT005BJ3AKNI30@a-mtaout23.012.net.il>; Sat, 29 Dec 2012 20:56:45 +0200 (IST) Date: Sat, 29 Dec 2012 20:56:54 +0200 From: Eli Zaretskii Subject: Re: bug#13303: 24.2.91; gdb under emacs broken for break commands In-reply-to: <85wqw0zoql.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il To: Stephen Leake Message-id: <831ue8lma1.fsf@gnu.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> <85wqw0zoql.fsf@stephe-leake.org> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13303 Cc: 13303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > From: Stephen Leake > Cc: 13303@debbugs.gnu.org > Date: Sat, 29 Dec 2012 13:40:02 -0500 > > Eli Zaretskii writes: > > > It's XP SP3. Do you mean you don't get "(gdb)" after typing "end" on > > Windows as well? > > Correct. Is that with native Emacs and GDB, or with Cygwin builds thereof? > > 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) What can I say? it's strange. I even tried with GDB 7.4.1 on Windows (don't have it on GNU/Linux), and after "set interactive-mode off", "end" ends the breakpoint commands and gets me back to the GDB prompt. > > 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. Maybe someone else could chime in and suggest ideas. > Is there another (non-emacs) front-end that uses gdb -i=mi that I can > try, to see if it works there? http://sourceware.org/gdb/wiki/GDB%20Front%20Ends lists a few. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 29 19:15:44 2018 Received: (at control) by debbugs.gnu.org; 29 Aug 2018 23:15:44 +0000 Received: from localhost ([127.0.0.1]:37627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv9ge-0001zE-73 for submit@debbugs.gnu.org; Wed, 29 Aug 2018 19:15:44 -0400 Received: from mail-it0-f53.google.com ([209.85.214.53]:35515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv9gb-0001z1-VF for control@debbugs.gnu.org; Wed, 29 Aug 2018 19:15:42 -0400 Received: by mail-it0-f53.google.com with SMTP id 139-v6so191846itf.0 for ; Wed, 29 Aug 2018 16:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=m8u8mK2k0j0Wx07mohQx905gyxSPHbVKtSObPomMJBE=; b=BLNAILanHVvh9m7mAx94w2shNNH6YzxJPBpJLceBfIk4szTDDaHZPOYNldp6ULH1Zo iY/0uJFym456vkrEajV+oCvV4it+zGQHnk371z3rPasbcyvDT8MQ5DBJRtJ020+JSPs7 UxEnrJmPpIILZWL2TNLcGX7a4DO2xWz1BvIPgWwDHVXJ2WOnSOvWcgJk5FsfDjVCS6UR x5OSlJ4ZGmxUiXSDMpWKeG2M2Z8Q34mlwPcFJC+rSOKawwfTTNdX3OQn/WwRsi1Axuuo DcA+l5GI24gE6z0W8IBRsQgbPHBGTNIf8y3s2rt8XQBRJ497gfmG+E/vB/q/tUhmlfal oP3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=m8u8mK2k0j0Wx07mohQx905gyxSPHbVKtSObPomMJBE=; b=D+lfgDvPgfCqnJcgnn5Oga1VKG/l6jj/4I0AvetDXKTV1z9qGbTJBzsRY9kQUlRmME LBpaZZnCdeG+eN6llchKk2B/gzQkR/Ov299CVZk1In4vwGeyQfxQlKrgRzTi/0+gkM+b hOakQWozKz28enAE8elVshUAUAF10Hrj5ixNYy2+y7pYcye8Z+a5YlAjIr5UGc2J3vgi AkA1VnIWCeF+6APJlB4Egm5YtYvNnSuSKrFwzB2h60FTEhzSTT/a+UTOaV+79qQFT16V KHuknk6Sffr6YKPkC0mIpIxi3Ug6ltwkv11geEg2bnVptVXchReyLINSmoVs+Yoaalh0 nj5g== X-Gm-Message-State: APzg51BV0r5DWgoyihPleTRMf8WedOa4SESsAky0IJ5pB9XDGQVS/yXt uX7FwJMIBektexCIhYmp8OZk409P X-Google-Smtp-Source: ANB0VdY9M2ndp9QlIKvnwv6YUi72OQfs8zR+2DoyL+chGm4bAWlHonaNx38Of7JsINOvCkbg0v5KjQ== X-Received: by 2002:a24:5e48:: with SMTP id h69-v6mr122587itb.153.1535584536380; Wed, 29 Aug 2018 16:15:36 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e5-v6sm343230itf.0.2018.08.29.16.15.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 16:15:35 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #32576 Date: Wed, 29 Aug 2018 19:15:34 -0400 Message-ID: <87o9dksr1l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 32576 13303 quit From unknown Sun Jun 22 00:52:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Oct 2018 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator