commit | 604386598d43e50f183aba65189354e04ffbdda3 | [log] [tgz] |
---|---|---|
author | Pedro Alves <pedro@palves.net> | Fri Sep 24 15:38:20 2021 +0100 |
committer | Pedro Alves <pedro@palves.net> | Fri Sep 24 18:53:55 2021 +0100 |
tree | 19f499f47dcfd9d326d925973aabc793b681a0ac | |
parent | a13af434cfadb743e16b72ffaf716508b51f9d4a [diff] |
Make dcache multi-target-safe By inspection, I noticed that this code in dcache.c is not multi-target-aware: /* If this is a different inferior from what we've recorded, flush the cache. */ if (inferior_ptid != dcache->ptid) This doesn't take into account that threads of different targets may have the same ptid. Fixed by also storing/comparing the process_stratum_target. Tested on x86-64-linux-gnu, native and gdbserver. Change-Id: I4d9d74052c696b72d28cb1c77b697b911725c8d3