gdb: Move la_language into the language_defn class
[deliverable/binutils-gdb.git] / gdb / infrun.h
index 625c53a94a082d31a8d30a73441da1aaafebf51b..daf62a137cc89d1b6ecae932d4ad0b91d97699d6 100644 (file)
@@ -26,10 +26,22 @@ struct frame_info;
 struct address_space;
 struct return_value_info;
 struct process_stratum_target;
+struct thread_info;
 
 /* True if we are debugging run control.  */
 extern unsigned int debug_infrun;
 
+/* Print an "infrun" debug statement.  Should be used through
+   infrun_debug_printf.  */
+void ATTRIBUTE_PRINTF (2, 3) infrun_debug_printf_1
+  (const char *func_name, const char *fmt, ...);
+
+#define infrun_debug_printf(fmt, ...) \
+  do { \
+    if (debug_infrun) \
+      infrun_debug_printf_1 (__func__, fmt, ##__VA_ARGS__); \
+  } while (0)
+
 /* True if we are debugging displaced stepping.  */
 extern bool debug_displaced;
 
@@ -129,7 +141,7 @@ extern void stop_all_threads (void);
 
 extern void prepare_for_detach (void);
 
-extern void fetch_inferior_event (void *);
+extern void fetch_inferior_event ();
 
 extern void init_wait_for_inferior (void);
 
@@ -150,7 +162,9 @@ extern int thread_is_stepping_over_breakpoint (int thread);
    triggers a non-steppable watchpoint.  */
 extern int stepping_past_nonsteppable_watchpoint (void);
 
-extern void set_step_info (struct frame_info *frame,
+/* Record in TP the frame and location we're currently stepping through.  */
+extern void set_step_info (thread_info *tp,
+                          struct frame_info *frame,
                           struct symtab_and_line sal);
 
 /* Several print_*_reason helper functions to print why the inferior
This page took 0.024444 seconds and 4 git commands to generate.