[Dwarf-Discuss] how to find local variable stored in register
Neeraj kushwaha
kushneeraj@gmail.com
Mon Feb 4 04:20:24 GMT 2008
Hi All,
I am trying to find the value of local variable which are stored in
register.
for ex:
int a;
void foo()
{
register int b;
int c;
}
dwarf info:
DW_TAG_subprogram
DW_AT_name = foo
DW_TAG_variable
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.
Regards
Neeraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20080204/92912abf/attachment.htm>
More information about the Dwarf-discuss
mailing list