[Patch] Fix variable type glitch in inf-ptrace.c
authorJiong Wang <jiong.wang@arm.com>
Thu, 16 Mar 2017 09:55:18 +0000 (09:55 +0000)
committerJiong Wang <jiong.wang@arm.com>
Thu, 16 Mar 2017 15:02:15 +0000 (15:02 +0000)
gdb/
* inf-ptrace.c (inf_ptrace_peek_poke): Change the type to "ULONGEST"
for "skip".

gdb/ChangeLog
gdb/inf-ptrace.c

index 2658d91764d83812ae13e41e5b0e80e144f5fdca..9010d6fcd08e570143a40119b7d07f087729dc1a 100644 (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
index 32794ec132f72c261debd329196c73a4e3cff75b..431a36b8c726f8475650de00bf895b8d5f48fa83 100644 (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;
This page took 0.03906 seconds and 4 git commands to generate.