[Dwarf-Discuss] Register Variable Values?

Michael Eager eager at eagercon.com
Mon Apr 28 09:34:30 PDT 2008


ashim saikia wrote:
> Hi,
> Is there any way to get the value of a variable stored in register in 
> ARM arct. using dwarf information.... Ofcourse dwarf tells us the 
> variable is in register. But to get the value we need to take help of 
> frame pointer. So in stack frame,
> is there any specific location that holds the register values (ARM arct.).
> For Intel arct., it is there.....

DWARF can contain information on where registers are saved in
a stack frame, but it appears that compilers often don't generate
this info for all saved registers.

This may be an area where you need to know the processor/system
ABI or the convention that the compiler uses to save regs.

-- 
Michael Eager	 eager at eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Dwarf-Discuss mailing list