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]

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


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