all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#5077: 23.1.50; gdb-mi prompt weirdness
Date: Sun, 29 Nov 2009 23:25:01 -0500	[thread overview]
Message-ID: <87fx7w1vxe.fsf@maru.md5i.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: foo.cpp --]
[-- Type: text/x-c++src, Size: 268 bytes --]

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;
}



[-- Attachment #3: Type: text/plain, Size: 225 bytes --]


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:


[-- Attachment #4: Type: text/plain, Size: 779 bytes --]

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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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 

[-- Attachment #5: Type: text/plain, Size: 6051 bytes --]


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 <return> 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 : <return> <return> < # p a r t <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
C-y <return> < # / 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 <escape> < 
C-n C-n C-n C-n C-n C-n C-n C-n C-n <return> C-_ C-c 
C-c <help-echo> M-x r e p o r t - e m <tab> <retur
n>

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)

             reply	other threads:[~2009-11-30  4:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19239.10745.474675.267599@totara.tehura.co.nz>
2009-11-30  4:25 ` Michael Welsh Duggan [this message]
2009-12-14  9:17   ` bug#5077: 23.1.50; gdb-mi prompt weirdness Nick Roberts
2009-12-15  4:02     ` Michael Welsh Duggan
2009-12-15  6:25   ` bug#5077: marked as done (23.1.50; gdb-mi prompt weirdness) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fx7w1vxe.fsf@maru.md5i.com \
    --to=md5i@md5i.com \
    --cc=5077@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.