aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-01-24 22:34:34 +0000
committerDaniel Jacobowitz <drow@false.org>2006-01-24 22:34:34 +0000
commit9353355fa3d730a3ffa21e35fef78cfb6475effa (patch)
treeb911676afdc03d4e71d3c113c9c190eaf71308f6 /gdb/remote.c
parent281b533b6ced43d45f4630a47e998ec82c42e2aa (diff)
downloadgdb-9353355fa3d730a3ffa21e35fef78cfb6475effa.zip
gdb-9353355fa3d730a3ffa21e35fef78cfb6475effa.tar.gz
gdb-9353355fa3d730a3ffa21e35fef78cfb6475effa.tar.bz2
PR gdb/1914
* fork-child.c (fork_inferior): Don't call solib_create_inferior_hook. * infcmd.c (post_create_inferior): Call solib_add, solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs. (attach_command): Don't call solib_add or re_enable_breakpoints_in_shlibs. Call post_create_inferior instead. * remote.c (remote_open_1): Don't call solib_create_inferior_hook or observer_notify_inferior_created. Call post_create_inferior instead. * corelow.c: Don't include "observer.h". (solib_add_stub): Deleted. (core_open): Don't call observer_notify_inferior_created or solib_add_stub. Call post_create_inferior instead. * inf-ptrace.c: Don't include "observer.h". (inf_ptrace_attach): Don't call observer_notify_inferior_created. * inf-ttrace.c: Don't include "observer.h". (inf_ttrace_attach): Don't call observer_notify_inferior_created. * inferior.h (solib_create_inferior_hook): Remove redundant prototype. * inftarg.c: Don't include "observer.h". (child_attach): Don't call observer_notify_inferior_created. * Makefile.in: Update dependencies.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 9fe9f9a..3318fb3 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2295,24 +2295,10 @@ remote_open_1 (char *name, int from_tty, struct target_ops *target,
getpkt (buf, rs->remote_packet_size, 0);
}
- /* FIXME: need a master target_open vector from which all
- remote_opens can be called, so that stuff like this can
- go there. Failing that, the following code must be copied
- to the open function for any remote target that wants to
- support svr4 shared libraries. */
+ post_create_inferior (&current_target, from_tty);
- /* Set up to detect and load shared libraries. */
if (exec_bfd) /* No use without an exec file. */
- {
-#ifdef SOLIB_CREATE_INFERIOR_HOOK
- SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
-#else
- solib_create_inferior_hook ();
-#endif
- remote_check_symbols (symfile_objfile);
- }
-
- observer_notify_inferior_created (&current_target, from_tty);
+ remote_check_symbols (symfile_objfile);
}
/* This takes a program previously attached to and detaches it. After