This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Set nr_bytes in remote_write_bytes


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]