aboutsummaryrefslogtreecommitdiff
path: root/gdb/run-on-main-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/run-on-main-thread.c')
-rw-r--r--gdb/run-on-main-thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c
index edaab08..bf53163 100644
--- a/gdb/run-on-main-thread.c
+++ b/gdb/run-on-main-thread.c
@@ -22,6 +22,7 @@
#include <thread>
#include <mutex>
#endif
+#include "gdbsupport/cleanups.h"
#include "gdbsupport/event-loop.h"
/* The serial event used when posting runnables. */
@@ -130,9 +131,7 @@ is_main_thread ()
#endif
}
-void _initialize_run_on_main_thread ();
-void
-_initialize_run_on_main_thread ()
+INIT_GDB_FILE (run_on_main_thread)
{
#if CXX_STD_THREAD
/* The variable main_thread_id should be initialized when entering main, or