Re: Patch: Dwarf2 reader -vs- DW_OP_piece

Andrew Cagney
2002-02-24T17:12:59Z

> 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)
read_register_bytes(). Sigh.

Andrew