Re: [PATCH 4/4] gdb: change regcache list to be a map

Pedro Alves
2020-08-05T18:14:30Z

On 7/30/20 7:17 PM, Simon Marchi wrote:
> Just a note, I think your implementation of get_thread_arch_aspace_regcache could
> be simplified by using the top map's operator[]. When we look up a regcache, we'll
> want to create it if it doesn't exist, which means that if the ptid_regcache_map
> doesn't exist for a given target, we'll want to create it.
>
> I'll do that change, but I wanted to tell you in case you see a problem with it.

I think you're right. I don't see a problem offhand.

Pedro