arm-linux-nat.c: Add cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 3 Nov 2015 18:33:14 +0000 (13:33 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 3 Nov 2015 18:33:14 +0000 (13:33 -0500)
Fixes:

/home/simark/src/binutils-gdb/gdb/arm-linux-nat.c: In function ‘const target_desc* arm_linux_read_description(target_ops*)’:
/home/simark/src/binutils-gdb/gdb/../include/libiberty.h:711:38: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
 # define alloca(x) __builtin_alloca(x)
                                      ^
/home/simark/src/binutils-gdb/gdb/arm-linux-nat.c:578:13: note: in expansion of macro ‘alloca’
       buf = alloca (VFP_REGS_SIZE);
             ^

gdb/ChangeLog:

* arm-linux-nat.c (arm_linux_read_description): Add cast.

gdb/ChangeLog
gdb/arm-linux-nat.c

index 7de4153e4b4dca0b2e0cb53e6b550199e38cb2cd..8cb45b81a5bc71426741faf540b697b3ad34ae09 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * arm-linux-nat.c (arm_linux_read_description): Add cast.
+
 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
index a63b181697cccc3a7f0267ffde3f866d7d4d6c3c..63fdae13ca2fa2214a2cff84e3bb440706f6c80f 100644 (file)
@@ -575,7 +575,7 @@ arm_linux_read_description (struct target_ops *ops)
         registers.  Support was added in 2.6.30.  */
       pid = ptid_get_lwp (inferior_ptid);
       errno = 0;
-      buf = alloca (VFP_REGS_SIZE);
+      buf = (char *) alloca (VFP_REGS_SIZE);
       if (ptrace (PTRACE_GETVFPREGS, pid, 0, buf) < 0
          && errno == EIO)
        result = NULL;