aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-06 17:25:18 +0000
committerPedro Alves <palves@redhat.com>2009-05-06 17:25:18 +0000
commita562dc8f5a5930afaa5ffb3e98200e21dd8b724a (patch)
tree253d0f5a8b267a42f80b720a316e76f7c88ee60a
parent25513619dbf1a7c4daaa32e841d8f560d0d18bf5 (diff)
downloadgdb-a562dc8f5a5930afaa5ffb3e98200e21dd8b724a.zip
gdb-a562dc8f5a5930afaa5ffb3e98200e21dd8b724a.tar.gz
gdb-a562dc8f5a5930afaa5ffb3e98200e21dd8b724a.tar.bz2
* inferior.c (add_inferior): Move observer_notify_new_inferior
call to ... (add_inferior_silent): ... here.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/inferior.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ffccb85..21bf55d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-06 Pedro Alves <pedro@codesourcery.com>
+
+ * inferior.c (add_inferior): Move observer_notify_new_inferior
+ call to ...
+ (add_inferior_silent): ... here.
+
2009-05-06 Pierre Muller <muller.u-strasbg.fr>
Pedro Alves <pedro@codesourcery.com>
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 745ec7c..e19a898 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -84,6 +84,8 @@ add_inferior_silent (int pid)
inf->next = inferior_list;
inferior_list = inf;
+ observer_notify_new_inferior (pid);
+
return inf;
}
@@ -92,8 +94,6 @@ 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);