gdb cannot set registers in frames

Sp3cial K ikiwibebe@hotmail.com
Wed Dec 7 01:18:00 GMT 2005


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




More information about the Gdb mailing list