diff options
author | Gary Benson <gbenson@redhat.com> | 2015-03-03 12:34:40 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-03-03 12:36:25 +0000 |
commit | dd2ac17449b62de57f128f670b1783bb6728eac6 (patch) | |
tree | 2b96a93d69e8812da7695755f74c916cd8204b03 /gdb | |
parent | d68e53f47932eb7c374df9b90faed7aca2eed9d7 (diff) | |
download | gdb-dd2ac17449b62de57f128f670b1783bb6728eac6.zip gdb-dd2ac17449b62de57f128f670b1783bb6728eac6.tar.gz gdb-dd2ac17449b62de57f128f670b1783bb6728eac6.tar.bz2 |
Fix incorrect vFile: prefix lengths
gdb/gdbserver/ChangeLog:
* hostio.c (handle_vFile): Fix prefix lengths.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/hostio.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 208601d..0d6e83c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-03-03 Gary Benson <gbenson@redhat.com> + + * hostio.c (handle_vFile): Fix prefix lengths. + 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index c9ad8f4..e6b7754 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -513,9 +513,9 @@ handle_vFile (char *own_buf, int packet_len, int *new_packet_len) { if (strncmp (own_buf, "vFile:open:", 11) == 0) handle_open (own_buf); - else if (strncmp (own_buf, "vFile:pread:", 11) == 0) + else if (strncmp (own_buf, "vFile:pread:", 12) == 0) handle_pread (own_buf, new_packet_len); - else if (strncmp (own_buf, "vFile:pwrite:", 12) == 0) + else if (strncmp (own_buf, "vFile:pwrite:", 13) == 0) handle_pwrite (own_buf, packet_len); else if (strncmp (own_buf, "vFile:close:", 12) == 0) handle_close (own_buf); |