[PATCH 1/7] Regcache: Subclass ptid functionality to target_regcache
Yao Qi
qiyaoltc@gmail.com
Wed Aug 23 10:33:00 GMT 2017
Alan Hayward <Alan.Hayward@arm.com> writes:
> All ptid related functions are moved to target_regcache.
>
What is the rationale of this change? The regcache is per-thread, even
it is disconnected from target.
> A regcache retains the ptid () method, which always returns -1.
ptid_t (-1) is minus_one_ptid, which has a special meaning.
> This ensures users can always test if a regcache is attached to a
> target, without needing to know if it is a target_regcache.
When do we need such test ("if a regcache is attached to a target")?
--
Yao (齐尧)
More information about the Gdb-patches
mailing list