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/top.c | |
parent | da0e2ac4f7c34114da60178b4077cf6410618353 (diff) | |
download | gdb-54b815ddb428944a70694e3767a0fadbdd9ca9ea.zip gdb-54b815ddb428944a70694e3767a0fadbdd9ca9ea.tar.gz 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/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -221,7 +221,7 @@ int (*deprecated_query_hook) (const char *, va_list); /* Replaces most of warning. */ -void (*deprecated_warning_hook) (const char *, va_list); +thread_local void (*deprecated_warning_hook) (const char *, va_list); /* These three functions support getting lines of text from the user. They are used in sequence. First deprecated_readline_begin_hook is |