summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2017-03-16 09:55:18 +0000
committerJiong Wang <jiong.wang@arm.com>2017-03-16 15:02:15 +0000
commit28f1c60507ad4ca2252cebada30d2f63ec3b772f (patch)
tree13f9c4a0ce6ba46b35574896cfc24814b4604df7
parentec3b243d4308ee56c9e3c62470b10ed2a822eb51 (diff)
downloadbinutils-gdb-28f1c60507ad4ca2252cebada30d2f63ec3b772f.tar.gz
[Patch] Fix variable type glitch in inf-ptrace.c
gdb/ * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to "ULONGEST" for "skip".
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/inf-ptrace.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2658d91764d..9010d6fcd08 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-16 Jiong Wang <jiong.wang@arm.com>
+
+ * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
+ "ULONGEST" for "skip".
+
2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
PR gdb/21220
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 32794ec132f..431a36b8c72 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -462,7 +462,7 @@ inf_ptrace_peek_poke (pid_t pid, gdb_byte *readbuf,
/* We transfer aligned words. Thus align ADDR down to a word
boundary and determine how many bytes to skip at the
beginning. */
- unsigned int skip = addr & (sizeof (PTRACE_TYPE_RET) - 1);
+ ULONGEST skip = addr & (sizeof (PTRACE_TYPE_RET) - 1);
addr -= skip;
for (n = 0;