[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:
parent
ec3b243d43
commit
28f1c60507
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue