diff options
-rw-r--r-- | gdb/record.c | 21 | ||||
-rw-r--r-- | gdb/record.h | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gdb/record.c b/gdb/record.c index ef154593e32..15bc722a856 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -343,6 +343,27 @@ cmd_record_save (char *args, int from_tty) /* See record.h. */ void +record_signal_goto_stop (struct thread_info *tp) +{ + struct target_waitstatus ws; + struct cleanup *cleanup; + + clear_proceed_status_thread (tp); + + cleanup = make_cleanup_restore_current_thread (); + switch_to_thread (tp->ptid); + + ws.kind = TARGET_WAITKIND_NO_RESUMED; + set_last_target_status (tp->ptid, ws); + + observer_notify_normal_stop (NULL, 1); + + do_cleanups (cleanup); +} + +/* See record.h. */ + +void record_goto (const char *arg) { ULONGEST insn; diff --git a/gdb/record.h b/gdb/record.h index 84440c64b99..8baf01c21eb 100644 --- a/gdb/record.h +++ b/gdb/record.h @@ -91,4 +91,7 @@ extern struct target_ops *find_record_target (void); it does anything. */ extern void record_preopen (void); +/* Signal a record-goto stop of TP to front-ends. */ +extern void record_signal_goto_stop (struct thread_info *tp); + #endif /* _RECORD_H_ */ |