mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
[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:
@ -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>
|
2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
PR gdb/21220
|
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
|
/* We transfer aligned words. Thus align ADDR down to a word
|
||||||
boundary and determine how many bytes to skip at the
|
boundary and determine how many bytes to skip at the
|
||||||
beginning. */
|
beginning. */
|
||||||
unsigned int skip = addr & (sizeof (PTRACE_TYPE_RET) - 1);
|
ULONGEST skip = addr & (sizeof (PTRACE_TYPE_RET) - 1);
|
||||||
addr -= skip;
|
addr -= skip;
|
||||||
|
|
||||||
for (n = 0;
|
for (n = 0;
|
||||||
|
Reference in New Issue
Block a user