aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
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/top.c
parentda0e2ac4f7c34114da60178b4077cf6410618353 (diff)
downloadgdb-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index d211f1b..009bf2b 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -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