This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
fail to get ra and bp
- From: bjgnu at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Thu, 12 Oct 2006 12:36:09 +0800
- Subject: fail to get ra and bp
Hi all,
The prologue has two insns ---- push ra and push bp.
When back tracing and printing variables, gdb will look for return address
of this frame and frame pointer on stack.
Unfortunately, If compiling with -O2, the two insns are probably deleted.
So, GDB will not get ra and bp value.
It seems MIPS also fail to do this.
Anyone has any thought?
Thanks.
ligang