diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-21 09:45:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | e7692320db944fd157978d9be9f18a86abb997b4 (patch) | |
tree | de4e345dd0090de729d027cfeebd1e22c2147a76 /gdb/interps.h | |
parent | c27ec5c09f3b94704688845e78861977d9bd4d71 (diff) | |
download | gdb-e7692320db944fd157978d9be9f18a86abb997b4.zip gdb-e7692320db944fd157978d9be9f18a86abb997b4.tar.gz gdb-e7692320db944fd157978d9be9f18a86abb997b4.tar.bz2 |
gdb: add interp::on_breakpoint_created method
Same idea as previous patches, but for breakpoint_created.
Change-Id: I614113c924edc243590018b8fb3bf69cb62215ef
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 7bd57cb..b1e2903 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -166,6 +166,9 @@ public: /* Notify the interpreter that trace state variable TSV was modified. */ virtual void on_tsv_modified (const trace_state_variable *tsv) {} + /* Notify the interpreter that breakpoint B was created. */ + virtual void on_breakpoint_created (breakpoint *b) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -335,6 +338,9 @@ extern void interps_notify_tsv_deleted (const trace_state_variable *tsv); /* Notify all interpreters that trace state variable TSV was modified. */ extern void interps_notify_tsv_modified (const trace_state_variable *tsv); +/* Notify all interpreters that breakpoint B was created. */ +extern void interps_notify_breakpoint_created (breakpoint *b); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |