aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-11-03 13:33:14 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2015-11-03 13:33:14 -0500
commitf844cf0ec3887110375e9c1d4c48a68cb6a8b141 (patch)
treea6d1e0f0bad8132bfce62e8e8a178507b3c33ee0 /gdb/arm-linux-nat.c
parent171de4b8fb2bfe1be8a2f7f479047e51da05883e (diff)
downloadgdb-f844cf0ec3887110375e9c1d4c48a68cb6a8b141.zip
gdb-f844cf0ec3887110375e9c1d4c48a68cb6a8b141.tar.gz
gdb-f844cf0ec3887110375e9c1d4c48a68cb6a8b141.tar.bz2
arm-linux-nat.c: Add cast
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.
Diffstat (limited to 'gdb/arm-linux-nat.c')
-rw-r--r--gdb/arm-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index a63b181..63fdae1 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -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;