On Wed, Jan 21, 2004 at 07:16:48PM +0530, Amit S. Kale wrote:
Now back to gdb problem of not being able to locate registers.
schedule results in code of this form:
schedule:
framesetup
registers save
...
...
save registers
change esp
call switchto
restore registers
...
...
GDB can't analyze code other than frame setup and registers save. It may not show values of variables that are present in registers correctly. This used to be a problem some time ago (gdb 5.X). Perhaps gdb 6.x does a better job.
hmm...
May be its time I should look at gdb's x86 register info code again.
You should try GDB 6.0, which will use the dwarf2 unwind information to
accurately locate registers in any GCC-compiled code with -gdwarf-2 (-g
on Linux targets).
As George is now painfully familiar with :)