diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-05-06 17:25:16 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-05-06 17:25:16 +0000 |
commit | 4a279491a9e87d72e62ecc69002680212237e589 (patch) | |
tree | 467f57cbbf8d0d42f1890539f6bd31dea3b6686c /gdb/inferior.c | |
parent | f4d38636274a54bb614d642173137ea6b1f63222 (diff) | |
download | gdb-4a279491a9e87d72e62ecc69002680212237e589.tar.gz |
* inferior.c (add_inferior): Move observer_notify_new_inferior
call to ...
(add_inferior_silent): ... here.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |