forked from Imagelibrary/binutils-gdb
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user