Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Shaun Jackman <sjackman@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: Modifying a verboten register
Date: Thu, 04 May 2006 14:52:00 -0000	[thread overview]
Message-ID: <20060504145211.GB32605@nevyn.them.org> (raw)
In-Reply-To: <7f45d9390605040745o4c332058te1e289e5d5e9620@mail.gmail.com>

On Thu, May 04, 2006 at 08:45:44AM -0600, Shaun Jackman wrote:
> 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 posted an explanation of this problem on gdb-patches yesterday, as it
happens, with a nasty hack.

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

Correct.

> (gdb) p/x $cpsr
> $1 = 0xd7
> 
> [in a galaxy far, far away]
> BDI>rm cpsr 0x3f
> BDI>rd cpsr
> cpsr: 0x0000003f  63

Right here, use the flushregs command in GDB.

> (gdb) p/x $cpsr
> $2 = 0xd7

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-05-04 14:52 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 [this message]
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=20060504145211.GB32605@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=sjackman@gmail.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