gdb: add interp::on_user_selected_context_changed method

Same as previous patches, but for user_selected_context_changed.

Change-Id: I40de15be897671227d4bcf3e747f0fd595f0d5be
This commit is contained in:
Simon Marchi
2023-04-20 16:07:12 -04:00
parent 2736b77153
commit 77cd03e27c
12 changed files with 67 additions and 84 deletions

View File

@@ -745,7 +745,7 @@ inferior_command (const char *args, int from_tty)
switch_to_thread (tp);
}
gdb::observers::user_selected_context_changed.notify
notify_user_selected_context_changed
(USER_SELECTED_INFERIOR
| USER_SELECTED_THREAD
| USER_SELECTED_FRAME);
@@ -754,7 +754,7 @@ inferior_command (const char *args, int from_tty)
{
switch_to_inferior_no_thread (inf);
gdb::observers::user_selected_context_changed.notify
notify_user_selected_context_changed
(USER_SELECTED_INFERIOR);
}
}