diff options
author | Andreas Schwab <schwab@suse.de> | 2016-05-19 14:43:56 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2016-05-19 15:31:56 +0200 |
commit | bfb0d950a58edc4eb1f102174af38a364f4f43f7 (patch) | |
tree | 179e879210f4270ade2523cb93cd00c625acc0b2 /gdb/ia64-linux-nat.c | |
parent | fc3eec7ebd155d31c1a58e6446cc231ddb6e361b (diff) | |
download | gdb-bfb0d950a58edc4eb1f102174af38a364f4f43f7.zip gdb-bfb0d950a58edc4eb1f102174af38a364f4f43f7.tar.gz gdb-bfb0d950a58edc4eb1f102174af38a364f4f43f7.tar.bz2 |
Fix invalid implicit conversions from void *
* ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
(libunwind_frame_set_descr): Likewise.
(libunwind_frame_cache): Likewise.
(libunwind_frame_dealloc_cache): Likewise.
(libunwind_frame_sniffer): Likewise.
(libunwind_search_unwind_table): Likewise.
(libunwind_sigtramp_frame_sniffer): Likewise.
(libunwind_get_reg_special): Likewise.
(libunwind_load): Likewise.
* ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
(ia64_linux_store_register): Likewise.
(ia64_linux_xfer_partial): Likewise.
* ia64-tdep.c (ia64_access_reg): Likewise.
(ia64_access_fpreg): Likewise.
(ia64_access_rse_reg): Likewise.
(ia64_access_rse_fpreg): Likewise.
Diffstat (limited to 'gdb/ia64-linux-nat.c')
-rw-r--r-- | gdb/ia64-linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index cd52d2e..a401fdd 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -746,7 +746,7 @@ ia64_linux_fetch_register (struct regcache *regcache, int regnum) size = register_size (gdbarch, regnum); gdb_assert ((size % sizeof (PTRACE_TYPE_RET)) == 0); - buf = alloca (size); + buf = (PTRACE_TYPE_RET *) alloca (size); /* Read the register contents from the inferior a chunk at a time. */ for (i = 0; i < size / sizeof (PTRACE_TYPE_RET); i++) @@ -804,7 +804,7 @@ ia64_linux_store_register (const struct regcache *regcache, int regnum) size = register_size (gdbarch, regnum); gdb_assert ((size % sizeof (PTRACE_TYPE_RET)) == 0); - buf = alloca (size); + buf = (PTRACE_TYPE_RET *) alloca (size); /* Write the register contents into the inferior a chunk at a time. */ regcache_raw_collect (regcache, regnum, buf); @@ -865,7 +865,7 @@ ia64_linux_xfer_partial (struct target_ops *ops, if (offset >= gate_table_size) return TARGET_XFER_EOF; - tmp_buf = alloca (gate_table_size); + tmp_buf = (gdb_byte *) alloca (gate_table_size); res = syscall (__NR_getunwind, tmp_buf, gate_table_size); if (res < 0) return TARGET_XFER_E_IO; |