[Patch] Fix variable type glitch in inf-ptrace.c

gdb/
	* inf-ptrace.c (inf_ptrace_peek_poke): Change the type to "ULONGEST"
	for "skip".
This commit is contained in:
Jiong Wang 2017-03-16 09:55:18 +00:00
parent ec3b243d43
commit 28f1c60507
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;