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: Fri, 28 Dec 2012 23:04:21 -0500 Message-ID: <858v8hec6y.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1356753915 3878 80.91.229.3 (29 Dec 2012 04:05:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 04:05:15 +0000 (UTC) To: 13303@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 05:05:27 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 1Tonfp-0000sY-Uc for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 05:05:26 +0100 Original-Received: from localhost ([::1]:35112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tonfb-000204-AA for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2012 23:05:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TonfX-0001yE-Tl for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:05:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TonfW-00018B-CZ for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:05:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TonfW-00016K-58 for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:05:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TongQ-0007Ns-5N for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2012 23:06: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 04:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135675393828350 (code B ref -1); Sat, 29 Dec 2012 04:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2012 04:05:38 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-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:69135 Archived-At: 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)