Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Denis PILAT <denis.pilat@st.com>
To: gdb@sourceware.org
Subject: Query user with gdb MI intepreter
Date: Tue, 21 Oct 2008 12:18:00 -0000	[thread overview]
Message-ID: <48FDC870.5040900@st.com> (raw)

Hi all

I have a problem with the current gdb that, run from an eclipse 
front-end using MI interpreter, query the user with defaulted_query () 
to prompt him to "Quit this debugging session?" .
Is that a normal behavior or not ?
I thought that gdb should not query user when using MI mode, but I can 
we wrong, that's my point.
Here is part of th back trace. As you will see, we have an assertion 
that comes from a problem with the frame unwinder, but I want first to 
make sure that this assertion can request for user interaction or no.
The command that leads to the assertion is a simple -exec-next


#6 0x0805ba75 in defaulted_query (ctlstr=0x83459ac "%s\nQuit this 
debugging session? ", defchar=0 '\0',args=0xbfff8ab4 "6r\t\030\001") at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:1215
#7 0x0805bc36 in query (ctlstr=0x83459ac "%s\nQuit this debugging 
session? ") at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:1312
#8 0x0805be92 in internal_vproblem (problem=0x83e04a0, file=0x838e684 
"/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", 
line=<value optimized out>, fmt=0x8342d79 "%s: Assertion `%s' failed.", 
ap=0xbfff8b2c "T&#65533;\b\016&#65533;\b") at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:746
#9 0x08059723 in internal_verror (file=0x838e684 
"/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", 
line=280, fmt=0x8342d79 "%s: Assertion `%s' failed.", ap=0xbfff8b2c 
"T&#65533;\b\016&#65533;\b") at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:805
#10 0x08059759 in internal_error (file=0x838e684 
"/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", 
line=280, string=0x8342d79 "%s: Assertion `%s' failed.") at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:814
#11 0x0812c0a8 in dwarf2_restore_rule (gdbarch=<value optimized out>, 
reg_num=<value optimized out>, fs=0x983dbc0, eh_frame_p=1) at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c:280
#12 0x0812c25f in execute_cfa_program (insn_ptr=0x9988eba "\f\f\020", 
insn_end=0x9988ec0 "\034", next_frame=0x96c5900, fs=0x983dbc0, 
eh_frame_p=1) at 
/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c:360



Thanks for your feedback,
Denis


             reply	other threads:[~2008-10-21 12:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 12:18 Denis PILAT [this message]
2008-10-23 10:30 ` Vladimir Prus
2008-10-23 11:08   ` Denis PILAT
2008-10-23  6:45 Nick Roberts
2008-10-23 10:21 ` Denis PILAT
2008-10-23 11:08   ` Nick Roberts
2008-10-23 12:57     ` Denis PILAT

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=48FDC870.5040900@st.com \
    --to=denis.pilat@st.com \
    --cc=gdb@sourceware.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox