Re: Getting DWARF codes from RTX

2011-10-20 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > BVI> Actually what I want is to have a way to go from the rtx value e.g (REG: > SI 1 di) to 0x51 That's just DW_OP_reg0 + DWARF_FRAME_REGNUM (REGNO (rtx)). Assuming REGNO (rtx) <= 31. Ian

RE: Getting DWARF codes from RTX

2011-10-20 Thread Iyer, Balaji V
Please see my comments embedded with "BVI>" -Original Message- From: Ian Lance Taylor [mailto:i...@google.com] Sent: Thursday, October 20, 2011 2:18 PM To: Iyer, Balaji V Cc: 'gcc@gcc.gnu.org' Subject: Re: Getting DWARF codes from RTX "Iyer, Balaji V" w

Re: Getting DWARF codes from RTX

2011-10-20 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > What I want to do is to look at certain function calls and mark them > with a special label and then create a table with a specialized section with > contains the label name, the function name (as ascii string) and then the > dwarf code of the register (assumi

Re: Getting DWARF codes from RTX

2011-10-20 Thread Michael Eager
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 describ

RE: Getting DWARF codes from RTX

2011-10-20 Thread Iyer, Balaji V
To: Iyer, Balaji V Cc: 'gcc@gcc.gnu.org' Subject: Re: Getting DWARF codes from RTX "Iyer, Balaji V" writes: > Is there a function (or a series of functions) in GCC using which I can > convert a register number (either in RTX or int) to DWARF code? Are you looking for

Re: Getting DWARF codes from RTX

2011-10-19 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > Is there a function (or a series of functions) in GCC using which I can > convert a register number (either in RTX or int) to DWARF code? Are you looking for DWARF_FRAME_REGNUM? If not, what do you mean by DWARF code? Do you mean inside gcc, or in code compile