aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.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/corelow.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/corelow.c')
-rw-r--r--gdb/corelow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 81c2b58..4c6a40c 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -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);