forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
committed by
Tom Tromey
parent
79a0742380
commit
fb85cece22
@@ -124,9 +124,8 @@ extern process_stratum_target *user_visible_resume_target (ptid_t resume_ptid);
|
||||
extern int normal_stop (void);
|
||||
|
||||
/* Return the cached copy of the last target/ptid/waitstatus returned
|
||||
by target_wait()/deprecated_target_wait_hook(). The data is
|
||||
actually cached by handle_inferior_event(), which gets called
|
||||
immediately after target_wait()/deprecated_target_wait_hook(). */
|
||||
by target_wait(). The data is actually cached by handle_inferior_event(),
|
||||
which gets called immediately after target_wait(). */
|
||||
extern void get_last_target_status (process_stratum_target **target,
|
||||
ptid_t *ptid,
|
||||
struct target_waitstatus *status);
|
||||
|
||||
Reference in New Issue
Block a user