aboutsummaryrefslogtreecommitdiff
path: root/gdb/opencl-lang.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2021-09-24 15:38:20 +0100
committerPedro Alves <pedro@palves.net>2021-09-24 18:53:55 +0100
commit604386598d43e50f183aba65189354e04ffbdda3 (patch)
tree19f499f47dcfd9d326d925973aabc793b681a0ac /gdb/opencl-lang.c
parenta13af434cfadb743e16b72ffaf716508b51f9d4a (diff)
downloadgdb-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/opencl-lang.c')
0 files changed, 0 insertions, 0 deletions