On Thu, 2020-10-29 at 13:36 -0600, Tom Tromey wrote: > > > > > > "Mark" == Mark Wielaard <m...@klomp.org> writes: > > Mark> On Sat, Oct 24, 2020 at 03:05:55PM -0600, Tom Tromey wrote: > Mark> Clearly DW_FORM_strx3 and DW_FORM_addrx3 aren't used much > Mark> (given that it is an index value between larger than 65536). > > > > > > I don't even really see the need for a 3-byte form. > > > Anyway if it helps, gdb gets this wrong too -- gdb always uses > > > little-endian, which seems wrong, but I didn't know how to write a > > > real-life test case. > > Mark> How about the attached? It isn't very fancy, but it would have caught > Mark> the bug you found. And might be nice in case we ever refactor the > Mark> read_unaligned code. > > Looks reasonable to me. Thanks for doing that.
Thanks, pushed.