From 41330f5d32d175de2b70eaed5031823c113b5961 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 17 May 2024 20:09:18 +0100 Subject: Fix process-dies-after-detach - Need to flush pending kernel-side events - I realized that while we're detaching, we want to pass exceptions down to the inferior with DBG_EXCEPTION_NOT_HANDLED, instead of losing them. I ended up reusing a bit of code from the Linux target. Change-Id: Ifaa96b4a41bb83d868079af4d47633715c0e1940 --- gdb/infrun.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/infrun.h') diff --git a/gdb/infrun.h b/gdb/infrun.h index 5f83ca2..fd38094 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -319,6 +319,12 @@ extern void all_uis_on_sync_execution_starting (void); detach. */ extern void restart_after_all_stop_detach (process_stratum_target *proc_target); +/* While detaching, return the signal PTID was supposed to be resumed + with, if it were resumed, so we can pass it down to PTID while + detaching. */ +extern gdb_signal get_detach_signal (process_stratum_target *proc_target, + ptid_t ptid); + /* RAII object to temporarily disable the requirement for target stacks to commit their resumed threads. -- cgit v1.1