]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Capture directory in index_cache_store_context
authorTom Tromey <tom@tromey.com>
Sat, 27 Jan 2024 15:52:46 +0000 (08:52 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 9 Mar 2024 00:25:49 +0000 (17:25 -0700)
commit2509ae7fb0f899ccf19126d1df8a7c31d5fe6aec
tree89913a07ec32737ce1764d7d3030146f60bd3592
parent71d67416e78682933f3621a870ee10376ba14fbd
Capture directory in index_cache_store_context

I noticed that index_cache_store_context captures the 'enabled'
setting, but not the index cache directory.  This patch makes this
change, which avoids a possible race -- with background reading, the
user could possibly change this directory at the exact moment the
writer examines the variable.
gdb/dwarf2/index-cache.c
gdb/dwarf2/index-cache.h