aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:28:05 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:28:05 +0000
commit4a92f99bc7076bebcee009e8b2a7fc717df03590 (patch)
tree67b5ccbd4bc7353ad54d046c61689598295c70a4 /gdb/doc
parent3ee1c036ac61c61fc906fc93eb63fe625cacaa55 (diff)
downloadgdb-4a92f99bc7076bebcee009e8b2a7fc717df03590.zip
gdb-4a92f99bc7076bebcee009e8b2a7fc717df03590.tar.gz
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/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/observer.texi10
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 363ee18..18f6650 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
+
+ * observer.texi (new_inferior, inferior_exit): New observers.
+
2008-10-27 Pedro Alves <pedro@codesourcery.com>
* gdbint.texinfo (Adding a New Target): Don't mention TDEPFILES,
diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi
index f76bf9f..636658a 100644
--- a/gdb/doc/observer.texi
+++ b/gdb/doc/observer.texi
@@ -187,3 +187,13 @@ a pointer to the new architecture.
The thread's ptid has changed. The @var{old_ptid} parameter specifies
the old value, and @var{new_ptid} specifies the new value.
@end deftypefun
+
+@deftypefun void new_inferior (int @var{pid})
+@value{GDBN} has attached to a new inferior identified by @var{pid}.
+@end deftypefun
+
+@deftypefun void inferior_exit (int @var{pid})
+Either @value{GDBN} detached from the inferior, or the inferior
+exited. The argument @var{pid} identifies the inferior.
+@end deftypefun
+