This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb cannot set registers in frames
- From: "Sp3cial K" <ikiwibebe at hotmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Tue, 06 Dec 2005 20:18:04 -0500
- Subject: gdb cannot set registers in frames
- Bcc:
Hi,
I've encountered this strangeness a couple of times, so this should be
easily reproduced. If not, I'll post a test sample.
The gdb version is 5.3...
1. switch to a frame other than the inner-most frame (f 1, f 2, f 3, etc...
just not f 0)
2. print register
3. set registers (particularly ebp and eip) to some other value
4. print register, what shows here is the value from step 2 (the set command
from step 3 did not change the register)
However, if you switch to the inner-most frame (f 0), then setting the
register will change the register value.
Please help!
~k