From fb85cece22a2cb3c0185e61cfc1323e9c5a6466e Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 12 Mar 2022 13:41:47 +0100 Subject: Replace deprecated_target_wait_hook by observers Commit b60cea7 (Make target_wait options use enum flags) broke deprecated_target_wait_hook usage: there's a commit comment telling this hook has not been converted. Rather than trying to mend it, this patch replaces the hook by two target_wait observers: target_pre_wait (ptid_t ptid) target_post_wait (ptid_t event_ptid) Upon target_wait entry, target_pre_wait is notified with the ptid passed to target_wait. Upon exit, target_post_wait is notified with the event ptid returned by target_wait. Should an exception occur, event_ptid is null_ptid. This change benefits to Insight (out-of-tree): there's no real use of the late hook in gdb itself. --- gdb/interps.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/interps.c') diff --git a/gdb/interps.c b/gdb/interps.c index a475d87..b8df3d7 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -357,7 +357,6 @@ clear_interpreter_hooks (void) deprecated_readline_hook = 0; deprecated_readline_end_hook = 0; deprecated_context_hook = 0; - deprecated_target_wait_hook = 0; deprecated_call_command_hook = 0; deprecated_error_begin_hook = 0; } -- cgit v1.1