diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-24 20:49:50 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-24 20:49:50 +0000 |
commit | 24291992dac3f63bef7ee031d4d5f2f96920e070 (patch) | |
tree | 31ecffb25c822e47a6607a984cdcee46ff3b91fa /gdb/inferior.h | |
parent | fc1cf338c43f4f84624cd0f9026e1be8561b2c42 (diff) | |
download | gdb-24291992dac3f63bef7ee031d4d5f2f96920e070.zip gdb-24291992dac3f63bef7ee031d4d5f2f96920e070.tar.gz gdb-24291992dac3f63bef7ee031d4d5f2f96920e070.tar.bz2 |
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 bd6f1c8..dc87a9e 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'. */ |