* remote.c (remote_write_bytes): Set nr_bytes before returning it.
authorAndrew Cagney <cagney@redhat.com>
Mon, 14 May 2001 16:48:01 +0000 (16:48 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 14 May 2001 16:48:01 +0000 (16:48 +0000)
* solib.h (no_shared_libraries): Declare.

gdb/ChangeLog
gdb/remote.c
gdb/solib.h

index 7ba341631f8c3752ebbf971e236b8bdbca93377c..f1f8a44e583b03d67c8ab1615af92531d4fcd893 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-14  Andrew Cagney  <ac131313@redhat.com>
+
+       * remote.c (remote_write_bytes): Set nr_bytes before returning it.
+       * solib.h (no_shared_libraries): Declare.
+
 2001-05-12  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
index 7cbe878c1dd8c71c63d4a836213ce541b92b25f1..60d462c166a3c256832db58593eea99a34186f67 100644 (file)
@@ -3630,6 +3630,7 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
         increasing byte addresses.  Each byte is encoded as a two hex
         value.  */
       bin2hex (myaddr, p, todo);
+      nr_bytes = todo;
       break;
     case PACKET_SUPPORT_UNKNOWN:
       internal_error (__FILE__, __LINE__,
index e99aba98c96e17cac2d9d82d18c8cd7a5ad05022..05e0cb73b656005322ba346be673ff7a5e65d95d 100644 (file)
@@ -193,3 +193,5 @@ extern char *solib_address (CORE_ADDR);     /* solib.c */
 #define IN_SOLIB_DYNSYM_RESOLVE_CODE(pc) in_solib_dynsym_resolve_code (pc)
 
 extern int in_solib_dynsym_resolve_code (CORE_ADDR);   /* solib.c */
+
+extern int no_shared_libraries (char *ignored, int from_tty);