Debugging information generated for local variable's address is wrong .
All my local variables and function arguments should be in between frame
pointer and stack pointer .
My assembly code generated places the values of variables in specified
locations .
But the variables address generated by compiler is not pointing to the
location as per assembly code.
Thanks in advance
Sumanth
Ian Lance Taylor wrote:
sumanth <sumanth.gundapneni@xxxxxxxxxxxxxxxxxx> writes:
I tried what you suggested and now my soft frame pointer
gets eliminated with hard frame pointer.
The problem here is I am not getting the correct debugging
information generated by compiler for local variables.
Eg: HARD_FRAME_POINTER_REGNUM is R11 FRAME_POINTER_REGNUM is RFP.
Now , as you mentioned I replaced RFP with R11 , my debugging
information gets corrupted.
""But if I hard code my FRAME_POINTER_REGNUM with R11 instead of
RFP , I get the correct debugging information""
and I do have certain problems in build with above replacement and
the generated code is not as reliable as expected.
In what way is the debugging information incorrect? Is it incorrect for
local variables, or function parameters, or both?
Ian