* remote.c (remote_write_bytes): Set nr_bytes before returning it.

* solib.h (no_shared_libraries): Declare.
This commit is contained in:
Andrew Cagney 2001-05-14 16:48:01 +00:00
parent b732d07d86
commit 1dd1751e96
3 changed files with 8 additions and 0 deletions

View 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.

View 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__,

View 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);