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:
Andrew Cagney 2004-05-25 16:04:07 +00:00
parent c27cda74c7
commit 20d2ca3e86
4 changed files with 22 additions and 4 deletions

View file

@ -43,7 +43,7 @@
#include "symfile.h"
#include "exec.h"
#include "readline/readline.h"
#include "observer.h"
#include "gdb_assert.h"
#ifndef O_BINARY
@ -355,6 +355,10 @@ core_open (char *filename, int from_tty)
ontop = !push_target (&core_ops);
discard_cleanups (old_chain);
/* This is done first, before anything has a chance to query the
inferior for information such as symbols. */
observer_notify_inferior_created (&core_ops, from_tty);
p = bfd_core_file_failing_command (core_bfd);
if (p)
printf_filtered ("Core was generated by `%s'.\n", p);