From: Pedro Alves Date: Wed, 6 May 2009 17:25:18 +0000 (+0000) Subject: * inferior.c (add_inferior): Move observer_notify_new_inferior X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a562dc8f5a5930afaa5ffb3e98200e21dd8b724a;p=binutils-gdb.git * inferior.c (add_inferior): Move observer_notify_new_inferior call to ... (add_inferior_silent): ... here. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ffccb85de96..21bf55d857a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-05-06 Pedro Alves + + * inferior.c (add_inferior): Move observer_notify_new_inferior + call to ... + (add_inferior_silent): ... here. + 2009-05-06 Pierre Muller Pedro Alves diff --git a/gdb/inferior.c b/gdb/inferior.c index 745ec7cd1ac..e19a8985d05 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);