aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-11-07 21:33:29 +0000
committerDaniel Jacobowitz <drow@false.org>2004-11-07 21:33:29 +0000
commit12b8a2cb8d184bd0ef8c5354f42e1c7bbc28b140 (patch)
tree72266ce3ca81bb138fc85d4f9866bf32f671caed /gdb/inf-ptrace.c
parentabbc6945577e04e769a5d62ec3dcff571a091730 (diff)
downloadgdb-12b8a2cb8d184bd0ef8c5354f42e1c7bbc28b140.zip
gdb-12b8a2cb8d184bd0ef8c5354f42e1c7bbc28b140.tar.gz
gdb-12b8a2cb8d184bd0ef8c5354f42e1c7bbc28b140.tar.bz2
* 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.
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r--gdb/inf-ptrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 283a22d..422c30d 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -220,6 +220,10 @@ inf_ptrace_attach (char *args, int from_tty)
inferior_ptid = pid_to_ptid (pid);
push_target (ptrace_ops_hack);
+
+ /* Do this first, before anything has had a chance to query the
+ inferior's symbol table or similar. */
+ observer_notify_inferior_created (&current_target, from_tty);
}
static void