aboutsummaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-25 16:04:07 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-25 16:04:07 +0000
commit20d2ca3e86cc80fcc93d9c3cf7c5cfe3e244714c (patch)
tree6e791f7d68067e01970841355ac297463118305c /gdb/inftarg.c
parentc27cda74c7f78e8db4cd25c739daca07ed83412c (diff)
downloadfsf-binutils-gdb-20d2ca3e86cc80fcc93d9c3cf7c5cfe3e244714c.zip
fsf-binutils-gdb-20d2ca3e86cc80fcc93d9c3cf7c5cfe3e244714c.tar.gz
fsf-binutils-gdb-20d2ca3e86cc80fcc93d9c3cf7c5cfe3e244714c.tar.bz2
2004-05-25 Andrew Cagney <cagney@gnu.org>
* inftarg.c: Include "observer.h". (child_attach, child_create_inferior): Notify inferior_created. * corelow.c: Include "observer.h". (core_open): Notify inferior_created. * Makefile.in (inftarg.o, corelow.o): Update dependencies.
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index 75e2690..a0e5dc5 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -34,7 +34,7 @@
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
-
+#include "observer.h"
#include "gdb_wait.h"
#include "inflow.h"
@@ -232,6 +232,10 @@ child_attach (char *args, int from_tty)
inferior_ptid = pid_to_ptid (pid);
push_target (&child_ops);
+
+ /* Do this first, before anything has had a chance to query the
+ inferiors symbol table or similar. */
+ observer_notify_inferior_created (&current_target, from_tty);
}
#endif /* ATTACH_DETACH */
}
@@ -365,6 +369,7 @@ child_create_inferior (char *exec_file, char *allargs, char **env,
fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, NULL, NULL);
#endif
/* We are at the first instruction we care about. */
+ observer_notify_inferior_created (&current_target, from_tty);
/* Pedal to the metal... */
proceed ((CORE_ADDR) -1, TARGET_SIGNAL_0, 0);
}