This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Set nr_bytes in remote_write_bytes
- To: gdb-patches at sources dot redhat dot com, cagney at cygnus dot com
- Subject: [PATCH]: Set nr_bytes in remote_write_bytes
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 14 May 2001 11:37:58 -0700
- Organization: Red Hat
Use the return value of bin2hex to set the number of converted bytes.
2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Set nr_bytes to return value of
bin2hex.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -c -3 -p -r1.50 -r1.51
*** remote.c 2001/05/14 16:48:01 1.50
--- remote.c 2001/05/14 18:31:35 1.51
*************** remote_write_bytes (CORE_ADDR memaddr, c
*** 3629,3636 ****
/* 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;
break;
case PACKET_SUPPORT_UNKNOWN:
internal_error (__FILE__, __LINE__,
--- 3629,3635 ----
/* Normal mode: Send target system values byte by byte, in
increasing byte addresses. Each byte is encoded as a two hex
value. */
! nr_bytes = bin2hex (myaddr, p, todo);
break;
case PACKET_SUPPORT_UNKNOWN:
internal_error (__FILE__, __LINE__,