On 10/20/2011 06:53 AM, Iyer, Balaji V wrote:

So, I need the equivalent dwarf code (in hex) for DW_OP_REG1, DW_OP_REG2 and 
DW_OP_REG3, so that a dwarf decoder can decode it correctly.

It's not clear what you mean by the dwarf code for DW_OP_REG1, etc.
Encoding for DW_OP_REG1, etc., is described in the Dwarf Standard on page 166.
See http://dwarfstd.org.

If you are looking for translation between gcc register numbers
and the Dwarf register numbers, look in dwarf2out.c.  Search for 
DBX_REGISTER_NUMBER.

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

Reply via email to