From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Daniel Jacobowitz" <drow@false.org>,
"Nick Roberts" <nickrob@snap.net.nz>
Cc: "Hui Zhu" <teawater@gmail.com>, <gdb@sources.redhat.com>,
"Michael Snyder" <msnyder@vmware.com>
Subject: RE: Reverse debugging
Date: Wed, 22 Jul 2009 17:46:00 -0000 [thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07C2FF93@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <20090718035954.GA14821@caradoc.them.org>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@false.org]
> Sent: Saturday, July 18, 2009 12:00 AM
> To: Nick Roberts
> Cc: Marc Khouzam; Hui Zhu; gdb@sources.redhat.com; Michael Snyder
> Subject: Re: Reverse debugging
>
> On Sat, Jul 18, 2009 at 01:06:36PM +1200, Nick Roberts wrote:
> > It seems strange not to use a tty for the console since it
> is a terminal. It
> > allows you to change the terminal mode, although admittedly
> I've not found a
> > need for this. Also if you wanted to use readline, I guess
> it would need a
> > tty.
>
> I've found it works much better to handle any readline-like behavior
> in the front end; then use -interpreter-exec to talk to GDB. This
> lets you reliably get MI notifications for actions, etc.
If I understand correctly your point is that using GDB to handle
readline behavior will lockup the GDB-frontend communication and will
delay any MI notifications. If that is what you meant, then I wasnted
to bring up the fact that such a problem is occuring now with
scripting (with the 'define' command).
If a user uses the 'define' command in the eclipse console, GDB is now
locked listening on the secondary prompt ('>'). If any MI commands
happened to be sent to GDB during that time, they get swallowed and
Eclipse gets all messed up.
I was considering handling the secondary prompt within eclipse and then
sending all those sub commands to GDB at once. To do this, I was
wondering a couple of things:
- is there anyway that something type at the secondary prompt
can cause a failure? What I mean is: is it true that
except for ^C and 'end', anything will be accepted at the
secondary prompt, and the next line will be a new secondary
prompt.
- can I 'undefine' a user command?
- are there many commands that trigger the secondary prompt?
I am aware of 'define' and 'actions'
Thanks
Marc
next prev parent reply other threads:[~2009-07-22 17:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 0:40 Nick Roberts
2009-07-14 0:53 ` Michael Snyder
2009-07-14 1:28 ` Nick Roberts
2009-07-14 17:36 ` Michael Snyder
2009-07-15 2:28 ` Nick Roberts
2009-07-16 3:09 ` Hui Zhu
2009-07-16 15:55 ` Marc Khouzam
2009-07-17 2:41 ` Nick Roberts
2009-07-17 14:12 ` Marc Khouzam
2009-07-17 14:25 ` Daniel Jacobowitz
2009-07-17 14:56 ` Marc Khouzam
2009-07-17 15:02 ` Daniel Jacobowitz
2009-07-19 3:21 ` Marc Khouzam
2009-07-20 3:27 ` Hui Zhu
2009-07-20 12:50 ` Marc Khouzam
2009-07-20 13:19 ` Marc Khouzam
2009-07-20 14:51 ` Hui Zhu
2009-07-21 3:21 ` Marc Khouzam
2009-09-11 13:26 ` Marc Khouzam
2009-07-18 1:06 ` Nick Roberts
2009-07-18 4:00 ` Daniel Jacobowitz
2009-07-22 17:46 ` Marc Khouzam [this message]
2009-07-16 3:05 ` Hui Zhu
2009-07-17 2:32 ` Nick Roberts
2009-08-17 7:49 ` Jakob Engblom
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=6D19CA8D71C89C43A057926FE0D4ADAA07C2FF93@ecamlmw720.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=msnyder@vmware.com \
--cc=nickrob@snap.net.nz \
--cc=teawater@gmail.com \
/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