diff options
-rw-r--r-- | gdb/stabsread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 98ea59d..79e8aa1 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -4497,6 +4497,11 @@ cleanup_undefined_types_1 (void) void cleanup_undefined_stabs_types (struct objfile *objfile) { +#if CXX_STD_THREAD + static std::mutex cleanup_undefined_stabs_types_lock; + std::lock_guard<std::mutex> guard (cleanup_undefined_stabs_types_lock); +#endif + cleanup_undefined_types_1 (); cleanup_undefined_types_noname (objfile); } |