From: Nick Roberts <nickrob@snap.net.nz>
To: Denis PILAT <denis.pilat@st.com>
Cc: gdb@sourceware.org
Subject: Re: Query user with gdb MI intepreter
Date: Thu, 23 Oct 2008 06:45:00 -0000 [thread overview]
Message-ID: <18688.7480.96669.634046@kahikatea.snap.net.nz> (raw)
> 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 ?
MI has no provision for handling query functions
> I thought that gdb should not query user when using MI mode, but I can we
> wrong, that's my point.
MI avoids queries generated by CLI commands by implicitly answering them in the
affirmative (by making deprecated_query_hook return 1).
> 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
This query arose (indirectly) from an MI command. Only a few MI commands
deal with queries, e.g, -break-insert for pending breakpoints and and
breakpoint menus, and they just take a default action.
If you want to request for user interaction you will need to give MI a richer
set of output records. Good luck!
--
Nick http://www.inet.net.nz/~nickrob
next reply other threads:[~2008-10-23 6:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 6:45 Nick Roberts [this message]
2008-10-23 10:21 ` Denis PILAT
2008-10-23 11:08 ` Nick Roberts
2008-10-23 12:57 ` Denis PILAT
-- strict thread matches above, loose matches on Subject: below --
2008-10-21 12:18 Denis PILAT
2008-10-23 10:30 ` Vladimir Prus
2008-10-23 11:08 ` 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=18688.7480.96669.634046@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=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