This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb cannot set registers in frames


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]