This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
fail to get ra and bp
- From: ligang at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Cc: bjgnu at sunnorth dot com dot cn
- Date: Thu, 12 Oct 2006 13:24:14 +0800
- Subject: fail to get ra and bp
Hi all,
I am porting GDB to a new target.
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.
Does it need to change ABI? Anyone has any thought?
Thanks.
Ligang