diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-04-17 20:31:00 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-04-17 20:31:00 +0000 |
commit | 6240bebf519f30316d72b2d1a06c5875de444603 (patch) | |
tree | aa77ba4d024171e878a96cb49b800b238d32e559 /gdb | |
parent | 75ac9d7b9d5075b6bf9b0cbbcd9749241ba84697 (diff) | |
download | fsf-binutils-gdb-6240bebf519f30316d72b2d1a06c5875de444603.zip fsf-binutils-gdb-6240bebf519f30316d72b2d1a06c5875de444603.tar.gz fsf-binutils-gdb-6240bebf519f30316d72b2d1a06c5875de444603.tar.bz2 |
2001-04-17 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): On opening the remote target, activate
the solib_create_inferior_hook, so that it can detect when the
target loads shared libraries.
(remote_async_open_1): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/remote.c | 24 |
2 files changed, 29 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3dfb98e..4240309 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2001-04-17 Michael Snyder <msnyder@redhat.com> + * remote.c (remote_open_1): On opening the remote target, activate + the solib_create_inferior_hook, so that it can detect when the + target loads shared libraries. + (remote_async_open_1): Ditto. + +2001-04-17 Michael Snyder <msnyder@redhat.com> + * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses. * tracepoint.c (tracepoints_info): Handle 64-bit addresses. * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses. diff --git a/gdb/remote.c b/gdb/remote.c index c7ff58f..fdc1564 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -50,6 +50,8 @@ #include <signal.h> #include "serial.h" +#include "gdbcore.h" /* for exec_bfd */ + /* Prototypes for local functions */ static void cleanup_sigint_signal_handler (void *dummy); static void initialize_sigint_signal_handler (void); @@ -2148,11 +2150,20 @@ serial device is attached to the remote system\n\ if (extended_p) { - /* tell the remote that we're using the extended protocol. */ + /* Tell the remote that we are using the extended protocol. */ char *buf = alloca (PBUFSIZ); putpkt ("!"); getpkt (buf, PBUFSIZ, 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. */ +#ifdef SOLIB_CREATE_INFERIOR_HOOK + if (exec_bfd) /* No use without an exec file. */ + SOLIB_CREATE_INFERIOR_HOOK (inferior_pid); +#endif } /* Just like remote_open but with asynchronous support. */ @@ -2242,11 +2253,20 @@ serial device is attached to the remote system\n\ if (extended_p) { - /* tell the remote that we're using the extended protocol. */ + /* Tell the remote that we are using the extended protocol. */ char *buf = alloca (PBUFSIZ); putpkt ("!"); getpkt (buf, PBUFSIZ, 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. */ +#ifdef SOLIB_CREATE_INFERIOR_HOOK + if (exec_bfd) /* No use without an exec file. */ + SOLIB_CREATE_INFERIOR_HOOK (inferior_pid); +#endif } /* This takes a program previously attached to and detaches it. After |