aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.c
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 /gdb/inf-ptrace.c
parentec3b243d4308ee56c9e3c62470b10ed2a822eb51 (diff)
downloadgdb-28f1c60507ad4ca2252cebada30d2f63ec3b772f.zip
gdb-28f1c60507ad4ca2252cebada30d2f63ec3b772f.tar.gz
gdb-28f1c60507ad4ca2252cebada30d2f63ec3b772f.tar.bz2
[Patch] Fix variable type glitch in inf-ptrace.c
gdb/ * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to "ULONGEST" for "skip".
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r--gdb/inf-ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 32794ec..431a36b 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;