Preserve selected thread in all-stop w/ background execution
[deliverable/binutils-gdb.git] / gdb / gdbthread.h
index dc7e248bc03abae1aa2ef73bb07c7071b8e7b512..5f1e3bb11c117f907e11c4c811ef147bc5aa87a4 100644 (file)
@@ -645,7 +645,13 @@ public:
 
   DISABLE_COPY_AND_ASSIGN (scoped_restore_current_thread);
 
+  /* Cancel restoring on scope exit.  */
+  void dont_restore () { m_dont_restore = true; }
+
 private:
+  void restore ();
+
+  bool m_dont_restore = false;
   /* Use the "class" keyword here, because of a clash with a "thread_info"
      function in the Darwin API.  */
   class thread_info *m_thread;
This page took 0.025625 seconds and 4 git commands to generate.