From: "Shaun Jackman" <sjackman@gmail.com>
To: gdb@sources.redhat.com
Subject: Modifying a verboten register
Date: Thu, 04 May 2006 14:45:00 -0000 [thread overview]
Message-ID: <7f45d9390605040745o4c332058te1e289e5d5e9620@mail.gmail.com> (raw)
Targetted for arm-elf, gdb does not let me modify the cpsr register
outside of a "normal" frame.
(gdb) p/x $cpsr=0x3f
Value being assigned to is no longer active.
I first reported this bug one year ago on 2005-04-20. So first thing
first, a wee anniversary party for the bug. *weeeeeeeeezzzzzzzzzzzzz*
(That was a noise maker.)
Parties aside, the JTAG interface I use (BDI2000) has a command mode
(Telnet interface) that I can use to modify the register. GDB seems to
cache its view of the registers though.
(gdb) p/x $cpsr
$1 = 0xd7
[in a galaxy far, far away]
BDI>rm cpsr 0x3f
BDI>rd cpsr
cpsr: 0x0000003f 63
(gdb) p/x $cpsr
$2 = 0xd7
I don't really expect two separate tools to cooperate to debug the
same core, but I'm scrambling for some (any) workaround to the above
bug. I quite literally see it *every* day. It makes my head hurt.
Cheers,
Shaun
next reply other threads:[~2006-05-04 14:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 14:45 Shaun Jackman [this message]
2006-05-04 14:52 ` Daniel Jacobowitz
2006-05-04 15:15 ` Shaun Jackman
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=7f45d9390605040745o4c332058te1e289e5d5e9620@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