diff options
author | Michael Snyder <msnyder@specifix.com> | 2001-05-14 18:31:35 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2001-05-14 18:31:35 +0000 |
commit | b60d4ac3618424dbc6689bdc86ff0d2a67389f1e (patch) | |
tree | eeecb3b6db371dfeb7c9e03a5b668004f91d9f89 | |
parent | ad25d6b5e6e531e1f304be5a284b670d79b72528 (diff) | |
download | gdb-b60d4ac3618424dbc6689bdc86ff0d2a67389f1e.tar.gz |
2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Set nr_bytes to return value of
bin2hex.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cce95e5943..101954b58ed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-05-14 Michael Snyder <msnyder@redhat.com> + + * remote.c (remote_write_bytes): Set nr_bytes to return value of + bin2hex. + 2001-05-14 Kevin Buettner <kevinb@redhat.com> * solib.h (no_shared_libraries): Make declaration match definition diff --git a/gdb/remote.c b/gdb/remote.c index 60d462c166a..8ec75d2558c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3629,8 +3629,7 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len) /* Normal mode: Send target system values byte by byte, in increasing byte addresses. Each byte is encoded as a two hex value. */ - bin2hex (myaddr, p, todo); - nr_bytes = todo; + nr_bytes = bin2hex (myaddr, p, todo); break; case PACKET_SUPPORT_UNKNOWN: internal_error (__FILE__, __LINE__, |