Re: RFC: DWARF expression disassembly

Jan Kratochvil
2010-05-25T20:25:32Z

On Tue, 25 May 2010 22:17:08 +0200, Tom Tromey wrote:
> Jan> Asking primarily because I miss the register names decording in readelf.

I meant in the current output of readelf I miss it does not decode the
register names.

> I don't see that in the code or the output. I see raw numbers like:
>
> (DW_OP_reg3; DW_OP_piece: 4; DW_OP_fbreg: 0; DW_OP_deref; DW_OP_plus_uconst: 6; DW_OP_stack_value; DW_OP_piece: 4)

Yes, I agree.

> I can add decoding if you want.

Apparently I cannot express personal experience with the GDB output but
I believe I will also miss it there. It is simpler to do in GDB.

> Maybe some other details need fixing
> too; if you agree with this general approach, feel free to list all the
> issues you run across and I will fix them up.

I cannot align myself with this separate implementation as I miss more the
register names in readelf than the address decoding in GDB. I understand I am
free to submit a binutils patch for it.

Thanks,
Jan