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;
extern void prepare_for_detach (void);
-extern void fetch_inferior_event (void *);
+extern void fetch_inferior_event ();
extern void init_wait_for_inferior (void);
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