From: "Shaun Jackman" <sjackman@gmail.com>
To: gdb@sources.redhat.com
Subject: Re: Modifying a verboten register
Date: Thu, 04 May 2006 15:15:00 -0000 [thread overview]
Message-ID: <7f45d9390605040815x5be2bcb8t921b2dd528335565@mail.gmail.com> (raw)
In-Reply-To: <20060504145211.GB32605@nevyn.them.org>
On 5/4/06, Daniel Jacobowitz <drow@false.org> wrote:
...
> I posted an explanation of this problem on gdb-patches yesterday, as it
> happens, with a nasty hack.
Wonderful news! Thanks, Daniel.
> Right here, use the flushregs command in GDB.
Great! Thanks for pointing this command out to me. I've used this hack
to modify the $cpsr and $pc to set the core back to a good frame. GDB
still has its old frame in its cache though. Is there a command to
re-read the frame from the new register values?
(gdb) f
#0 0x00000010 in ?? ()
BDI>rm cpsr 0xff
BDI>rm pc 0x200ca9a
(gdb) flushregs
Register cache flushed.
(gdb) p/x $cpsr
$24 = 0xff
(gdb) x/i $pc
0x200ca9a <_vfprintf_r+250>: ldrb r2, [r7, #0]
(gdb) f
#0 0x00000010 in ?? ()
Thanks,
Shaun
next prev parent reply other threads:[~2006-05-04 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 14:45 Shaun Jackman
2006-05-04 14:52 ` Daniel Jacobowitz
2006-05-04 15:15 ` Shaun Jackman [this message]
2006-07-12 23:16 ` Shaun Jackman
2008-02-29 11:13 ` Shaun Jackman
2008-02-29 13:41 ` Daniel Jacobowitz
2008-02-29 18:22 ` Shaun Jackman
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=7f45d9390605040815x5be2bcb8t921b2dd528335565@mail.gmail.com \
--to=sjackman@gmail.com \
--cc=gdb@sources.redhat.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