This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] update packet pointer in remote_write_bytes
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] update packet pointer in remote_write_bytes
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 25 May 2001 10:52:13 -0700
- CC: Michal dot Korbel at intel dot com, Piotr dot Uminski at intel dot com
- Organization: Red Hat
This oversight was pointed out by Michal Korbel of Intel.
2001-05-25 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Update 'p' packet pointer.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.54
diff -c -3 -p -r1.54 remote.c
*** remote.c 2001/05/21 18:48:26 1.54
--- remote.c 2001/05/25 17:45:28
*************** remote_write_bytes (CORE_ADDR memaddr, c
*** 3632,3637 ****
--- 3632,3638 ----
increasing byte addresses. Each byte is encoded as a two hex
value. */
nr_bytes = bin2hex (myaddr, p, todo);
+ p += 2 * nr_bytes;
break;
case PACKET_SUPPORT_UNKNOWN:
internal_error (__FILE__, __LINE__,