This is the mail archive of the
mailing list for the GDB project.
Re: Patch: Dwarf2 reader -vs- DW_OP_piece
> That makes sense.
> Could you change your patch to detect that pattern, verify that the
> register numbers are consecutive (according to DWARF2_REG_TO_REGNUM),
> return the number of the first register if everything seems right, and
> give a dwarf2_complex_location_expr complaint otherwise?
> This is a bit more work, but it's more correct.
BTW, this assumption is one of the two origins of our good friend (not)