aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-01-10 14:11:59 +0800
committerYao Qi <yao@codesourcery.com>2014-01-24 21:31:30 +0800
commit6b6aa828818fa4a5754fb8520751077146d9d16c (patch)
treeff2d34604e22a4bbb26cc4812839167e20c9defa /gdb/remote.c
parent5d6df423905215fc5ef796f20525cd84f92c3a8e (diff)
downloadgdb-6b6aa828818fa4a5754fb8520751077146d9d16c.zip
gdb-6b6aa828818fa4a5754fb8520751077146d9d16c.tar.gz
gdb-6b6aa828818fa4a5754fb8520751077146d9d16c.tar.bz2
Change len's type to ULONGEST: remote_read_bytes and get_core_siginfo
Functions remote_read_bytes and get_core_siginfo are the callees of target to_xfer_partial interface, so argument 'len' should be changed to type ULONGEST. gdb: 2014-01-24 Yao Qi <yao@codesourcery.com> * remote.c (remote_read_bytes): Change type of len to ULONGEST. * corelow.c (get_core_siginfo): Likewise.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 15e7394..7297df0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -7039,7 +7039,7 @@ remote_write_bytes (CORE_ADDR memaddr, const gdb_byte *myaddr, ULONGEST len)
target_xfer_error' value) for error. */
static LONGEST
-remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
+remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, ULONGEST len)
{
struct remote_state *rs = get_remote_state ();
int max_buf_size; /* Max size of packet output buffer. */
@@ -7047,7 +7047,7 @@ remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
int todo;
int i;
- if (len <= 0)
+ if (len == 0)
return 0;
max_buf_size = get_memory_read_packet_size ();