From 12b8a2cb8d184bd0ef8c5354f42e1c7bbc28b140 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 7 Nov 2004 21:33:29 +0000 Subject: * Makefile.in (symfile-mem.o): Update dependencies. * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New. (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p. * inf-ptrace.c (inf_ptrace_attach): Call observer_notify_inferior_created. * inftarg.c (child_attach): Likewise. * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h". (symbol_file_add_from_memory): Take NAME argument. Use it for the new BFD's filename. (add_symbol_file_from_memory_command): Update call to symbol_file_add_from_memory. (struct symbol_file_add_from_memory_args, add_vsyscall_page) (symbol_file_add_from_memory_wrapper): New. (_initialize_symfile_mem): Register add_vsyscall_page as an inferior_created observer. --- gdb/inftarg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/inftarg.c') diff --git a/gdb/inftarg.c b/gdb/inftarg.c index e9ace23a17f..0636eaa128b 100644 --- a/gdb/inftarg.c +++ b/gdb/inftarg.c @@ -211,6 +211,10 @@ child_attach (char *args, int from_tty) inferior_ptid = pid_to_ptid (pid); push_target (&deprecated_child_ops); + + /* Do this first, before anything has had a chance to query the + inferior's symbol table or similar. */ + observer_notify_inferior_created (¤t_target, from_tty); } #if !defined(CHILD_POST_ATTACH) -- cgit v1.2.1