Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Bug: Cannot set registers when stack frame is invalid - Quick fix ?
@ 2007-06-21 17:12 Sascha Radike
  0 siblings, 0 replies; only message in thread
From: Sascha Radike @ 2007-06-21 17:12 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-21 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-21 17:12 Bug: Cannot set registers when stack frame is invalid - Quick fix ? Sascha Radike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox