diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-24 08:40:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-08 18:40:21 -0700 |
commit | 54b815ddb428944a70694e3767a0fadbdd9ca9ea (patch) | |
tree | 30b304f9c78e77d4a7f75688349366925bec698a /gdb/defs.h | |
parent | da0e2ac4f7c34114da60178b4077cf6410618353 (diff) | |
download | fsf-binutils-gdb-54b815ddb428944a70694e3767a0fadbdd9ca9ea.zip fsf-binutils-gdb-54b815ddb428944a70694e3767a0fadbdd9ca9ea.tar.gz fsf-binutils-gdb-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |