aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:23 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:23 -0400
commitce746418ef15c5a47b9ab17c249ba5f7c273db4a (patch)
tree07087d162b316a3fd37c4723482884bddcd0a62d /gdb
parent10d43c801e9edb475eed059fa47935c2bb45e578 (diff)
downloadgdb-ce746418ef15c5a47b9ab17c249ba5f7c273db4a.zip
gdb-ce746418ef15c5a47b9ab17c249ba5f7c273db4a.tar.gz
gdb-ce746418ef15c5a47b9ab17c249ba5f7c273db4a.tar.bz2
ia64-tdep.c: Remove (void *) casts
Remove these (void *) casts, which cause a build failure in C++ mode. gdb/ChangeLog: * ia64-tdep.c (ia64_pseudo_register_write): Remove cast. (ia64_push_dummy_call): Remove cast and change type of "to" to array of gdb_byte.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ia64-tdep.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a06f568..0a8a693 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
+ (ia64_push_dummy_call): Remove cast and change type of "to" to
+ array of gdb_byte.
+
2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
* linux-btrace.c (linux_enable_pt): Add cast to mmap return.
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 46a114c..93748a4 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -1103,7 +1103,7 @@ ia64_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
if ((cfm & 0x7f) > regnum - V32_REGNUM)
{
ULONGEST reg_addr = rse_address_add (bsp, (regnum - V32_REGNUM));
- write_memory (reg_addr, (void *) buf, 8);
+ write_memory (reg_addr, buf, 8);
}
}
else if (IA64_NAT0_REGNUM <= regnum && regnum <= IA64_NAT31_REGNUM)
@@ -3854,11 +3854,11 @@ ia64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
len = TYPE_LENGTH (type);
while (len > 0 && floatreg < IA64_FR16_REGNUM)
{
- char to[MAX_REGISTER_SIZE];
+ gdb_byte to[MAX_REGISTER_SIZE];
convert_typed_floating (value_contents (arg) + argoffset,
float_elt_type, to,
ia64_ext_type (gdbarch));
- regcache_cooked_write (regcache, floatreg, (void *)to);
+ regcache_cooked_write (regcache, floatreg, to);
floatreg++;
argoffset += TYPE_LENGTH (float_elt_type);
len -= TYPE_LENGTH (float_elt_type);