forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
18
gdb/remote.c
18
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 (¤t_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 (¤t_target, from_tty);
|
||||
remote_check_symbols (symfile_objfile);
|
||||
}
|
||||
|
||||
/* This takes a program previously attached to and detaches it. After
|
||||
|
||||
Reference in New Issue
Block a user