This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: implement DW_OP_bit_piece


Tom> I will update locexpr_describe_location_1.

I looked at this a bit.  The existing code only supports a subset of
DWARF expressions.  I hacked at it a little and I can get this:

(gdb) info addr a
Symbol "a" is multi-location (range 0x8048440-0x8048448, a variable with complex or multiple locations (DWARF2); range 0x8048448-0x804844b, a variable with complex or multiple locations (DWARF2); range 0x804844b-0x804845b, a variable in $edx [12-bit piece at offset 0], and a variable at frame base reg $ebp offset 8+0Corrupted DWARF2 expression for "a".


... but I think this is pretty ugly (not to mention the "Corrupted" bit
at the end there... I haven't investigated it).

I think it would be more useful to just disassemble complicated DWARF
expressions.  We could just push in Jan's patch to do this.  Comments?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]