Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Jakob Engblom" <jakob@virtutech.com>
To: "'Michael Snyder'" <msnyder@vmware.com>
Cc: <gdb@sourceware.org>
Subject: RE: gdb-serial: inform gdb that target has changed
Date: Wed, 28 Oct 2009 11:08:00 -0000	[thread overview]
Message-ID: <008101ca57b8$2f3a2860$8dae7920$@com> (raw)
In-Reply-To: <4AE751C8.2070902@vmware.com>

> 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.

We need this to be invoked from the target, across gdb-serial connections. 

> 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.

Yes. 

Sice Simics has its own parallel command-line, we can be stepping the target,
changing memory and register contents, and do other things as gdb is sitting at
prompt waiting for commands.  

So a simple gdb-serial backwards command to notify gdb that the target has
changed and that all state should be updated would be the simple perfect
solution for us.


Best regards,

/jakob

_______________________________________________________

Jakob Engblom, PhD, Technical Marketing Manager

Virtutech                   Direct: +46 8 690 07 47   
Drottningholmsvägen 22      Mobile: +46 709 242 646  
11243 Stockholm             Web:    www.virtutech.com 
Sweden
________________________________________________________
  





      reply	other threads:[~2009-10-28 10:20 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
2009-10-28 11:08   ` Jakob Engblom [this message]

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='008101ca57b8$2f3a2860$8dae7920$@com' \
    --to=jakob@virtutech.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@vmware.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