diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 12:28:05 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 12:28:05 +0000 |
commit | 4a92f99bc7076bebcee009e8b2a7fc717df03590 (patch) | |
tree | 67b5ccbd4bc7353ad54d046c61689598295c70a4 /gdb/inferior.c | |
parent | 3ee1c036ac61c61fc906fc93eb63fe625cacaa55 (diff) | |
download | fsf-binutils-gdb-4a92f99bc7076bebcee009e8b2a7fc717df03590.zip fsf-binutils-gdb-4a92f99bc7076bebcee009e8b2a7fc717df03590.tar.gz fsf-binutils-gdb-4a92f99bc7076bebcee009e8b2a7fc717df03590.tar.bz2 |
Notification for attach/detach.
* inferior.c: Call the process observers.
* mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
(mi_interpreter_init): Register the above.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index 9fec4cc..24f8fa6 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -24,6 +24,7 @@ #include "gdbcmd.h" #include "gdbthread.h" #include "ui-out.h" +#include "observer.h" void _initialize_inferiors (void); @@ -91,6 +92,8 @@ add_inferior (int pid) { struct inferior *inf = add_inferior_silent (pid); + observer_notify_new_inferior (pid); + if (print_inferior_events) printf_unfiltered (_("[New inferior %d]\n"), pid); @@ -147,6 +150,8 @@ delete_inferior_1 (int pid, int silent) arg.silent = silent; iterate_over_threads (delete_thread_of_inferior, &arg); + + observer_notify_inferior_exit (pid); } void |