mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 20:32:21 +08:00
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.
This commit is contained in:
@ -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 (¤t_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 (¤t_target, from_tty);
|
||||
/* Pedal to the metal... */
|
||||
proceed ((CORE_ADDR) -1, TARGET_SIGNAL_0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user