merge from gcc
[deliverable/binutils-gdb.git] / gdb / gdbthread.h
index f0568e071f228301a45e6c84b07af37f8092035d..4440417674dbd4177307aa4ec2ba30a8ef05c4ec 100644 (file)
@@ -50,7 +50,6 @@ struct thread_info
   int current_line;
   struct symtab *current_symtab;
   int trap_expected;
-  int handling_longjmp;
   int stepping_over_breakpoint;
 
   /* This is set TRUE when a catchpoint of a shared library event
@@ -64,6 +63,10 @@ struct thread_info
      when we finally do stop stepping.  */
   bpstat stepping_through_solib_catchpoints;
 
+  /* This field is internal for thread.c.  Never access it directly,
+     use is_running instead.  */
+  int running_;
+
   /* Private data used by the target vector implementation.  */
   struct private_thread_info *private;
 };
@@ -123,7 +126,6 @@ extern void save_infrun_state (ptid_t ptid,
                               CORE_ADDR step_range_start,
                               CORE_ADDR step_range_end,
                               const struct frame_id *step_frame_id,
-                              int       handling_longjmp,
                               int       another_trap,
                               int       stepping_through_solib_after_catch,
                               bpstat    stepping_through_solib_catchpoints,
@@ -139,7 +141,6 @@ extern void load_infrun_state (ptid_t ptid,
                               CORE_ADDR *step_range_start,
                               CORE_ADDR *step_range_end,
                               struct frame_id *step_frame_id,
-                              int       *handling_longjmp,
                               int       *another_trap,
                               int       *stepping_through_solib_affter_catch,
                               bpstat    *stepping_through_solib_catchpoints,
@@ -149,6 +150,13 @@ extern void load_infrun_state (ptid_t ptid,
 /* Switch from one thread to another.  */
 extern void switch_to_thread (ptid_t ptid);
 
+/* Marks thread PTID is running, or stopped. 
+   If PIDGET (PTID) is -1, marks all threads.  */
+extern void set_running (ptid_t ptid, int running);
+
+/* Reports if thread PTID is know to be running right now.  */
+extern int is_running (ptid_t ptid);
+
 /* Commands with a prefix of `thread'.  */
 extern struct cmd_list_element *thread_cmd_list;
 
@@ -158,4 +166,8 @@ extern int print_thread_events;
 
 extern void print_thread_info (struct ui_out *uiout, int thread);
 
+extern struct cleanup *make_cleanup_restore_current_thread (ptid_t,
+                                                            struct frame_id);
+
+
 #endif /* GDBTHREAD_H */
This page took 0.025248 seconds and 4 git commands to generate.