[Dwarf-Discuss] how to find local variable stored in register
Frank Ch. Eigler
Tue Feb 5 00:14:49 GMT 2008
On Mon, Feb 04, 2008 at 03:19:43PM -0800, Michael Eager wrote:
> Frank Ch. Eigler wrote:
> >>Suppose this foo() funciton call another function, then this
> >>register value will get stored in stack before invoking the function
> >A truthful compiler will add extra location records for this variable
> >for the time (PC ranges) when its value is on the stack.
> DWARF does not describe where variables are saved as result of a
> function call. This is specified by the processor ABI.
A close reading of the original posting shows ... "before invoking the
function call" ... that is during the function call setup instructions
within the *caller*. DWARF should indeed describe the saved location
of the variable in these regions AFAIK.
More information about the Dwarf-discuss