aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-24 08:40:48 -0700
committerTom Tromey <tom@tromey.com>2024-01-08 18:40:21 -0700
commit54b815ddb428944a70694e3767a0fadbdd9ca9ea (patch)
tree30b304f9c78e77d4a7f75688349366925bec698a /gdb/defs.h
parentda0e2ac4f7c34114da60178b4077cf6410618353 (diff)
downloadbinutils-54b815ddb428944a70694e3767a0fadbdd9ca9ea.zip
binutils-54b815ddb428944a70694e3767a0fadbdd9ca9ea.tar.gz
binutils-54b815ddb428944a70694e3767a0fadbdd9ca9ea.tar.bz2
Refactor complaint thread-safety approach
This patch changes the way complaint works in a background thread. The new approach requires installing a complaint interceptor in each worker, and then the resulting complaints are treated as one of the results of the computation. This change is needed for a subsequent patch, where installing a complaint interceptor around a parallel-for is no longer a viable approach.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index e20143b..2f771d8 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -562,7 +562,7 @@ extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int noerror);
extern int (*deprecated_query_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
-extern void (*deprecated_warning_hook) (const char *, va_list)
+extern thread_local void (*deprecated_warning_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
extern void (*deprecated_readline_begin_hook) (const char *, ...)
ATTRIBUTE_FPTR_PRINTF_1;