Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sascha Radike" <sascha@pasalacqua.de>
To: <gdb@sourceware.org>
Subject: Bug: Cannot set registers when stack frame is invalid - Quick fix ?
Date: Thu, 21 Jun 2007 17:12:00 -0000	[thread overview]
Message-ID: <000101c7b427$5822d330$02b2a8c0@insanenotebook> (raw)

Hi,

I know there have been discussions before. I wonder if there is a quick fix
for the following problem:

GDB refuses to set registers when there is no valid stack frame.

Example:

1) Debugging an ARM target right after reset: The program counter is at 0
and all other registers contain random data.
I can't set any register - neither CPSR nor any R.. register.

2) Debugging an ARM target within a function: When changig CPSR or PC, so
the current stack frame will become invalid, I can no longer set registers.
This is quite blocking sometimes. I can set the PC to an invalid value, but
I can't change it back.

It a bit hard to understand that setting registers depends on valid stack
frames as the CPU registers are independent of stack frames (in the "real"
world). And when there is not valid stack frame, I, of course, expect to
still be able to set registers.

I wonder if there is quick fix so GDB will simply set registers when there
is no valid stack frame ?

GDB Snapshot from around 26.5.2007.

Thanks

Sascha


                 reply	other threads:[~2007-06-21 17:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000101c7b427$5822d330$02b2a8c0@insanenotebook' \
    --to=sascha@pasalacqua.de \
    --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