[PATCH v2 1/3] Use unsigned ints in regcache_map_entry
Simon Marchi
simon.marchi@ericsson.com
Thu Jun 21 13:27:00 GMT 2018
On 2018-06-21 05:38 AM, Alan Hayward wrote:
> All current uses of regcache_map_entry use static hard coded values.
> Update transfer_regset which uses those values.
Can you explain what we gain from this patch? In the previous discussion,
I mentioned that the parameters LEN and OFFSET in the regcache methods
(e.g. read_part) could be come unsigned, which would allow us to remove
the "offset >= 0 && len >= 0" assertions. In turn, they won't be
needed in your raw_collect_part/raw_supply_part. But I don't see
exactly what the current patch brings (though it's not incorrect).
Simon
More information about the Gdb-patches
mailing list