From: Michael Snyder <msnyder@vmware.com>
To: Jakob Engblom <jakob@virtutech.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: gdb-serial: inform gdb that target has changed
Date: Tue, 27 Oct 2009 20:15:00 -0000 [thread overview]
Message-ID: <4AE751C8.2070902@vmware.com> (raw)
In-Reply-To: <007101ca573c$0dfd9fa0$29f8dee0$@com>
Jakob Engblom wrote:
> Hi!
>
> While looking over gdb7 and getting our tool to work with it, we realized we
> still have an old outstanding issue with gdb-serial and using gdb as a debugger
> frontend. It is the fact that gdb assumes that it is in control, and the target
> cannot tell gdb to refresh its state since the target has changed outside of
> gdb's control. Today we do the work-around of disconnecting and connecting the
> connection to force gdb to refresh, which is not particularly elegant.
>
> Example cases: with reverse execution and a user on the back-end side jumping to
> back-end bookmarks in time, or triggering breakpoints on hardware accesses or
> other events that gdb have no real idea of.
Hi Jakob,
I'd like to know more about the context, but my first suggestion
is probably going to be the same in any event -- have you tried
this command instead of disconnect?
(gdb) help flushregs
Force gdb to flush its register cache (maintainer command)
After this command, if you give "frame", or any other command
that causes gdb to need to know where the target is, gdb will
fetch the registers afresh.
Now as to your context, and my questions...
Is this something that is happening when gdb is "at the prompt"?
Of course, in normal (sync) mode, gdb assumes that nothing is
happening on the target while we sit at the gdb prompt.
Just for understanding...
next prev parent reply other threads:[~2009-10-27 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 19:33 Jakob Engblom
2009-10-27 20:15 ` Michael Snyder [this message]
2009-10-28 11:08 ` 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=4AE751C8.2070902@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb@sourceware.org \
--cc=jakob@virtutech.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