* inferior.c (add_inferior): Move observer_notify_new_inferior
authorPedro Alves <palves@redhat.com>
Wed, 6 May 2009 17:25:18 +0000 (17:25 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 6 May 2009 17:25:18 +0000 (17:25 +0000)
call to ...
(add_inferior_silent): ... here.

gdb/ChangeLog
gdb/inferior.c

index ffccb85de964bf715e59af089a5df3b0e57a626b..21bf55d857a3a5c0578252385493674bcdc2b677 100644 (file)
@@ -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>
 
index 745ec7cd1ac4e41b47d2405e3b4c417ef297003b..e19a8985d05e6f51f9f0391ef62b2ca6d6ce8335 100644 (file)
@@ -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);
 
This page took 0.028076 seconds and 4 git commands to generate.