aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2024-05-17 20:09:18 +0100
committerPedro Alves <pedro@palves.net>2024-05-17 20:21:48 +0100
commit41330f5d32d175de2b70eaed5031823c113b5961 (patch)
tree641f08cd772c9f9d3a0e67acb19219b041714376 /gdb/infrun.h
parent5223cde0d5f7a74c31ce75c3ffb1064d8eeeaf54 (diff)
downloadbinutils-users/palves/windows-non-stop.zip
binutils-users/palves/windows-non-stop.tar.gz
binutils-users/palves/windows-non-stop.tar.bz2
Fix process-dies-after-detachusers/palves/windows-non-stop
- 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
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r--gdb/infrun.h6
1 files changed, 6 insertions, 0 deletions
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.