[Dwarf-Discuss] how to find local variable stored in register
Mon Feb 4 04:20:24 GMT 2008
I am trying to find the value of local variable which are stored in
register int b;
DW_AT_name = foo
DW_AT_name = b
DW_AT_type = <4>
DW_AT_location = DW_OP_reg0
>From this dwarf debug information I get that local variable b is stored at
DW_OP_reg0. But how to find this register value. Suppose this foo() funciton
call another function, then this register value will get stored in stack
before invoking the function call.
Please guide me how to find the local variable value which goes into stack.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dwarf-discuss