Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: "Anmol P. Paralkar" <b07584@freescale.com>
Cc: gdb@sourceware.org
Subject: Re: In a remote debug session, how do I get to see fresh register 	values  each time I do a 'show all-registers'?
Date: Mon, 02 Apr 2007 02:18:00 -0000	[thread overview]
Message-ID: <20070402021816.GA7828@caradoc.them.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0704012005020.9946@ld0159-tx32.am.freescale.net>

On Sun, Apr 01, 2007 at 08:16:39PM -0500, Anmol P. Paralkar wrote:
> Hello,

>  I am using GDB 6.6, (ppc64-elf) to remote debug linux running
>  on a PowerPC simulator. I can read the values of the GPR's in
>  the simulator and upon a 'show all-registers', I do see that
>  the registers have values as expected.

>  However, on issuing a 'show all-registers' subsequently, I see
>  GDB displaying the resgister values it displayed earlier - not
>  the ones that the simulator now shows. What do I need to do to
>  force GDB to get the fresh set of register values?

What has happened to change the registers?  Did the program run, or
are the registers changing while GDB thinks the simulator is stopped?

In the first case, it's a GDB bug.  In the second case, try the
flushregs command.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-04-02  2:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-02  1:16 Anmol P. Paralkar
2007-04-02  2:18 ` Daniel Jacobowitz [this message]
2007-04-02 17:09   ` Anmol P. Paralkar

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=20070402021816.GA7828@caradoc.them.org \
    --to=drow@false.org \
    --cc=b07584@freescale.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