ODR warnings for "struct insn_info"
[binutils-gdb.git] / gdb / run-on-main-thread.h
index 22200f0ee8c1ed0dfdddc1b4e389925d0487e53b..888328e7a5163a2080acc01df0a4daf8a27649d8 100644 (file)
@@ -1,5 +1,5 @@
 /* Run a function on the main thread
-   Copyright (C) 2019-2021 Free Software Foundation, Inc.
+   Copyright (C) 2019-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -25,4 +25,8 @@
 
 extern void run_on_main_thread (std::function<void ()> &&);
 
+/* Return true on the main thread.  */
+
+extern bool is_main_thread ();
+
 #endif /* GDB_RUN_ON_MAIN_THREAD_H */