gdb: add interp::on_target_resumed method

Same idea as previous patches, but for target_resumed.

Change-Id: I66fa28d1d41a1f3c4fb0d6a470137d493eac3c8c
This commit is contained in:
Simon Marchi
2023-04-21 09:45:30 -04:00
parent 44fbffc69d
commit 52d98df742
5 changed files with 32 additions and 18 deletions

View File

@@ -139,6 +139,9 @@ public:
virtual void on_record_changed (inferior *inf, int started,
const char *method, const char *format) {}
/* Notify the interpreter that the target was resumed. */
virtual void on_target_resumed (ptid_t ptid) {}
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -281,6 +284,9 @@ extern void interps_notify_record_changed (inferior *inf, int started,
const char *method,
const char *format);
/* Notify all interpreters that the target was resumed. */
extern void interps_notify_target_resumed (ptid_t ptid);
/* well-known interpreters */
#define INTERP_CONSOLE "console"
#define INTERP_MI2 "mi2"