diff options
author | Pedro Alves <pedro@palves.net> | 2021-09-24 15:38:20 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2021-09-24 18:53:55 +0100 |
commit | 604386598d43e50f183aba65189354e04ffbdda3 (patch) | |
tree | 19f499f47dcfd9d326d925973aabc793b681a0ac /gdb/eval.c | |
parent | a13af434cfadb743e16b72ffaf716508b51f9d4a (diff) | |
download | gdb-604386598d43e50f183aba65189354e04ffbdda3.zip gdb-604386598d43e50f183aba65189354e04ffbdda3.tar.gz gdb-604386598d43e50f183aba65189354e04ffbdda3.tar.bz2 |
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
Diffstat (limited to 'gdb/eval.c')
0 files changed, 0 insertions, 0 deletions