diff options
author | Pedro Alves <pedro@codesourcery.com> | 2010-02-24 20:49:50 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2010-02-24 20:49:50 +0000 |
commit | 07b30454a1c30ce45e3fc6b664425e4855b4eb20 (patch) | |
tree | 4c84b633791c166bd94ccba3299faaf3878d9a17 /gdb/inferior.h | |
parent | 11e54c1bd90cb4cabcde507e8d56e2724b4ca458 (diff) | |
download | gdb-07b30454a1c30ce45e3fc6b664425e4855b4eb20.tar.gz |
PR gdb/11321
* inferior.h (prepare_for_detach): Declare.
(struct inferior) <detaching>: New field.
* infrun.c (prepare_for_detach): New.
(handle_inferior_event) <random signal>: Don't stop if detaching.
* target.c (target_detach): Call prepare_for_detach.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index bd6f1c892d1..dc87a9e1929 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -185,6 +185,8 @@ extern void address_to_signed_pointer (struct gdbarch *gdbarch, extern void wait_for_inferior (int treat_exec_as_sigtrap); +extern void prepare_for_detach (void); + extern void fetch_inferior_event (void *); extern void init_wait_for_inferior (void); @@ -478,6 +480,9 @@ struct inferior either by exiting or execing. */ int waiting_for_vfork_done; + /* True if we're in the process of detaching from this inferior. */ + int detaching; + /* What is left to do for an execution command after any thread of this inferior stops. For continuations associated with a specific thread, see `struct thread_info'. */ |