summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-05-10 19:06:19 +0000
committerMichael Snyder <msnyder@vmware.com>2001-05-10 19:06:19 +0000
commitf78f6cf1070189e75917e47fec538483a494bf29 (patch)
tree24f1ec948a66ac5b101c7e874d79bf243e0942f2
parent30559e10c32af025c3daf878c5ac7b6afe799ac3 (diff)
downloadppe42-binutils-f78f6cf1070189e75917e47fec538483a494bf29.tar.gz
ppe42-binutils-f78f6cf1070189e75917e47fec538483a494bf29.zip
2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): Call no_shared_libraries, so that symbols for shared libraries can be reloaded per session. (remote_async_open_1): Ditto.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/remote.c18
2 files changed, 19 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 851d66b4a9..cde8f4b2d3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2001-05-10 Michael Snyder <msnyder@redhat.com>
+ * remote.c (remote_open_1): Call no_shared_libraries, so that
+ symbols for shared libraries can be reloaded per session.
+ (remote_async_open_1): Ditto.
* remote.c (bin2hex, hex2bin): New functions. Factor out these
two conversions which are coded for repeatedly in this module.
(remote_threads_extra_info, remote_wait, remote_async_wait,
diff --git a/gdb/remote.c b/gdb/remote.c
index 25743eb172..7cbe878c1d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2135,6 +2135,11 @@ serial device is attached to the remote system\n\
someday have a notion of debugging several processes. */
inferior_ptid = pid_to_ptid (MAGIC_NULL_PID);
+#ifdef SOLIB_CREATE_INFERIOR_HOOK
+ /* First delete any symbols previously loaded from shared libraries. */
+ no_shared_libraries (NULL, 0);
+#endif
+
/* Start the remote connection; if error (0), discard this target.
In particular, if the user quits, be sure to discard it
(we'd be in an inconsistent state otherwise). */
@@ -2153,12 +2158,14 @@ serial device is attached to the remote system\n\
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
+#ifdef SOLIB_CREATE_INFERIOR_HOOK
/* 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. */
-#ifdef SOLIB_CREATE_INFERIOR_HOOK
+
+ /* Set up to detect and load shared libraries. */
if (exec_bfd) /* No use without an exec file. */
SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
#endif
@@ -2235,6 +2242,11 @@ serial device is attached to the remote system\n\
implemented. */
wait_forever_enabled_p = 0;
+#ifdef SOLIB_CREATE_INFERIOR_HOOK
+ /* First delete any symbols previously loaded from shared libraries. */
+ no_shared_libraries (NULL, 0);
+#endif
+
/* Start the remote connection; if error (0), discard this target.
In particular, if the user quits, be sure to discard it
(we'd be in an inconsistent state otherwise). */
@@ -2256,12 +2268,14 @@ serial device is attached to the remote system\n\
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
+#ifdef SOLIB_CREATE_INFERIOR_HOOK
/* 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. */
-#ifdef SOLIB_CREATE_INFERIOR_HOOK
+
+ /* Set up to detect and load shared libraries. */
if (exec_bfd) /* No use without an exec file. */
SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
#endif
OpenPOWER on IntegriCloud