From unknown Sat Sep 06 09:27:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5077 <5077@debbugs.gnu.org> To: bug#5077 <5077@debbugs.gnu.org> Subject: Status: 23.1.50; gdb-mi prompt weirdness Reply-To: bug#5077 <5077@debbugs.gnu.org> Date: Sat, 06 Sep 2025 16:27:46 +0000 retitle 5077 23.1.50; gdb-mi prompt weirdness reassign 5077 emacs submitter 5077 Michael Welsh Duggan severity 5077 normal thanks From md5i@md5i.com Sun Nov 29 20:25:14 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Nov 2009 04:25:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.2 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAU4PDBn023741 for ; Sun, 29 Nov 2009 20:25:14 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47323) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NExp2-0005vQ-Fx for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:25:12 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NExoy-0004cX-Fz for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:25:12 -0500 Received: from md5i.com ([75.151.244.229]:57291 helo=maru.md5i.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NExoy-0004cN-23 for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:25:08 -0500 Received: from md5i by maru.md5i.com with local (Exim 4.69) (envelope-from ) id 1NExor-0005x1-Kq for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:25:01 -0500 From: Michael Welsh Duggan To: emacs-pretest-bug@gnu.org Subject: 23.1.50; gdb-mi prompt weirdness Date: Sun, 29 Nov 2009 23:25:01 -0500 Message-ID: <87fx7w1vxe.fsf@maru.md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) --=-=-= 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': Compile the following program using: g++ -g -o foo foo.cpp --=-=-= Content-Type: text/x-c++src Content-Disposition: inline; filename=foo.cpp class A { protected: int c(void) const { return 1;} int d(void) const { return 2;} }; class B : private A { public: using A::c; }; int main() { B b; int x; x = b.c(); // x = b.d(); // A &a = b; // x = a.d(); return 0; } --=-=-= In an emacs, start gdb using something similar to: M-x gdb RET gdb -i=mi bar RET Then use the following gdb session: start b run In my output, I end up in a state without a (gdb) prompt. Here is an example of my output: --=-=-= Content-Disposition: inline Current directory is /usr/local/home/md5i/ GNU gdb (GDB) 7.0-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/home/md5i/bar...done. (gdb) start Temporary breakpoint 1 at 0x80483a5: file bar.c, line 2. Starting program: /usr/local/home/md5i/bar (gdb) b Breakpoint 2 at 0x80483a5: file bar.c, line 2. (gdb) run Starting program: /usr/local/home/md5i/bar --=-=-= At this point I can type in gdb commands, but there is no visible prompt. I have been able to trigger this occurance in a number of debugging situations, and it can often be confusing, as no prompt to me generally means that the program is still running. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-27 on maru Windowing system distributor `The X.Org Foundation', version 11.0.10605000 configured using `configure '--without-toolkit-scroll-bars'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: display-time-mode: t diff-auto-refine-mode: t 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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-n C-n C-n C-p < # / p a r t > M-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n H e r e SPC i s SPC t h e SPC g d b - d e b u g - l o g SPC f o r SPC t h i s SPC s e s s i o n : < # p a r t C-y < # / p a r t > M-v M-v M-v M-v M-v M-v M-v M-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-a C-n C-SPC C-n M-w C-v C-v M-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-y M-v C-v C-v C-v C-v M-v M-v M-v C-v C-v C-v C-v C-v C-v C-v C-v M-v M-v C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-w C-v C-v C-v M-v M-v M-v M-v M-v M-v M-v M-v < C-n C-n C-n C-n C-n C-n C-n C-n C-n C-_ C-c C-c M-x r e p o r t - e m Recent messages: Reading active file from localimap via nnimap... nnimap: Checking mailboxes...done Reading active file from archive via nnfolder...done Checking new news...done Undo! Sending... Sending via mail... nnimap: Updating info for nnimap+localimap:archive.mail...done Sending...done Deleting article /home/md5i/News/drafts/drafts/3 in drafts... Load-path shadows: /usr/local/share/emacs/site-lisp/lilypond-words hides /usr/share/emacs/site-lisp/lilypond-words /usr/local/share/emacs/site-lisp/lilypond-indent hides /usr/share/emacs/site-lisp/lilypond-indent /usr/local/share/emacs/site-lisp/lilypond-mode hides /usr/share/emacs/site-lisp/lilypond-mode /home/md5i/src/elisp/psvn hides /usr/share/emacs/site-lisp/psvn /usr/local/share/emacs/site-lisp/lilypond-song hides /usr/share/emacs/site-lisp/lilypond-song /usr/local/share/emacs/site-lisp/lilypond-what-beat hides /usr/share/emacs/site-lisp/lilypond-what-beat /usr/local/share/emacs/site-lisp/lilypond-font-lock hides /usr/share/emacs/site-lisp/lilypond-font-lock /usr/local/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs/site-lisp/lilypond-init Features: (shadow ispell emacsbug newcomment speedbar sb-image ezimage dframe gdb-mi warnings bindat json gud dabbrev jka-compr find-func grep lilypond-mode scheme etags vc-git cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multi-isearch mule-util vc-dispatcher vc-svn gnus-cite ansi-color flow-fill gnus-async gnus-bcklg parse-time sort byte-opt bytecomp byte-compile gnus-ml disp-table gnus-topic nnfolder utf-7 utf7 rfc2104 nnimap nndraft nnmh bbdb-gnus bbdb-snarf mail-extr bbdb-com nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view smime dig gnus-cache edmacro kmacro gnus-demon nntp nnir gnus-sum gnus-group gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems server uptimes pp uniquify descr-text help-mode view tramp-imap epa epg epg-config imap-hash imap assoc tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source format-spec tramp-compat trampver time rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util sgml-mode psvn log-edit pcvs-util add-log diff-mode easy-mmode inf-caml camldebug thingatpt derived shell caml-types caml-emacs caml-font caml advice help-fns advice-preload compile imenu message sendmail ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils generic-x debian-el debian-el-loaddefs dired-x dired-aux dired bbdb-autoloads bbdb timezone ange-ftp regexp-opt comint ring cl cl-19 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) -- Michael Welsh Duggan (md5i@md5i.com) --=-=-=-- From nickrob@snap.net.nz Mon Dec 14 01:17:22 2009 Received: (at 5077) by emacsbugs.donarmstrong.com; 14 Dec 2009 09:17:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from viper.snap.net.nz (mail10.snap.net.nz [202.37.101.41]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBE9HKqH018765 for <5077@emacsbugs.donarmstrong.com>; Mon, 14 Dec 2009 01:17:22 -0800 Received: from totara (21.29.255.123.dynamic.snap.net.nz [123.255.29.21]) by viper.snap.net.nz (Postfix) with ESMTP id 6A2873D9FD5; Mon, 14 Dec 2009 22:17:20 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 86EE4C167; Mon, 14 Dec 2009 22:17:19 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19238.671.468663.187962@totara.tehura.co.nz> Date: Mon, 14 Dec 2009 22:17:19 +1300 To: Michael Welsh Duggan , 5077@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org Subject: bug#5077: 23.1.50; gdb-mi prompt weirdness In-Reply-To: <87fx7w1vxe.fsf@maru.md5i.com> References: <87fx7w1vxe.fsf@maru.md5i.com> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) > In my output, I end up in a state without a (gdb) prompt. Here is an > example of my output: > > Current directory is /usr/local/home/md5i/ > GNU gdb (GDB) 7.0-debian >... I can't see this with gdb currently in the CVS repository on x86_64-linux-gnu. What is the transcript if you run "gdb -i=mi bar" from the command line? -- Nick http://users.snap.net.nz/~nickrob From md5i@md5i.com Mon Dec 14 20:02:36 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Dec 2009 04:02:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBF42Yga013765 for ; Mon, 14 Dec 2009 20:02:35 -0800 Received: from mx10.gnu.org ([199.232.76.166]:40954) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NKOcM-0004wH-32 for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 23:02:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NKOcL-0004LF-0o for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 23:02:34 -0500 Received: from md5i.com ([75.151.244.229]:58072 helo=maru.md5i.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKOcK-0004LB-PK for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 23:02:32 -0500 Received: from md5i by maru.md5i.com with local (Exim 4.69) (envelope-from ) id 1NKOcF-00054O-Jq; Mon, 14 Dec 2009 23:02:27 -0500 From: Michael Welsh Duggan To: nickrob@snap.net.nz (Nick Roberts) Cc: 5077@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#5077: 23.1.50; gdb-mi prompt weirdness References: <87fx7w1vxe.fsf@maru.md5i.com> <19238.671.468663.187962@totara.tehura.co.nz> Date: Mon, 14 Dec 2009 23:02:27 -0500 In-Reply-To: <19238.671.468663.187962@totara.tehura.co.nz> (Nick Roberts's message of "Mon, 14 Dec 2009 22:17:19 +1300") Message-ID: <87fx7ckhpo.fsf@maru.md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 nickrob@snap.net.nz (Nick Roberts) writes: > > In my output, I end up in a state without a (gdb) prompt. Here is an > > example of my output: > > > > Current directory is /usr/local/home/md5i/ > > GNU gdb (GDB) 7.0-debian > >... > > I can't see this with gdb currently in the CVS repository on x86_64-linux-gnu. > What is the transcript if you run "gdb -i=mi bar" from the command line? I re-upped from CVS, and am no longer experiencing the problem... At least not with that recipe. I think you can close it for now. I will open a new ticket if I manage to make this happen again in another way. -- Michael Welsh Duggan (md5i@md5i.com) From nickrob@snap.net.nz Mon Dec 14 22:17:32 2009 Received: (at 5077-done) by emacsbugs.donarmstrong.com; 15 Dec 2009 06:17:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from viper.snap.net.nz (mail10.snap.net.nz [202.37.101.41]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBF6HVV3027209 for <5077-done@emacsbugs.donarmstrong.com>; Mon, 14 Dec 2009 22:17:32 -0800 Received: from totara (228.31.255.123.dynamic.snap.net.nz [123.255.31.228]) by viper.snap.net.nz (Postfix) with ESMTP id 839543DA1D6; Tue, 15 Dec 2009 19:17:30 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 8F43AC167; Tue, 15 Dec 2009 19:17:29 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19239.10745.474675.267599@totara.tehura.co.nz> Date: Tue, 15 Dec 2009 19:17:29 +1300 To: Michael Welsh Duggan Cc: 5077-done@debbugs.gnu.org Subject: Re: bug#5077: 23.1.50; gdb-mi prompt weirdness In-Reply-To: <87fx7ckhpo.fsf@maru.md5i.com> References: <87fx7w1vxe.fsf@maru.md5i.com> <19238.671.468663.187962@totara.tehura.co.nz> <87fx7ckhpo.fsf@maru.md5i.com> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) > I re-upped from CVS, and am no longer experiencing the problem... At > least not with that recipe. I think you can close it for now. I've done this but note that you could do it too just by adding "-done" to the e-mail address, 5077-done@debbugs.gnu.org in this case. > I will > open a new ticket if I manage to make this happen again in another way. Please do. -- Nick http://users.snap.net.nz/~nickrob From unknown Sat Sep 06 09:27:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 29 Jan 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator