From 7567e115d312c3f8b56de6d1e2e8a90212e9dba8 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 9 Oct 2015 09:41:30 -0400 Subject: Add two callback data casts gdb/ChangeLog: * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast. * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/fbsd-tdep.c | 3 ++- gdb/linux-tdep.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1a274b..0675200 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-10-09 Simon Marchi + + * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast. + * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise. + 2015-10-09 Eli Zaretskii * stack.c (print_stack_frame): diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 3231022..d7a5983 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -64,7 +64,8 @@ fbsd_collect_regset_section_cb (const char *sect_name, int size, const char *human_name, void *cb_data) { char *buf; - struct fbsd_collect_regset_section_cb_data *data = cb_data; + struct fbsd_collect_regset_section_cb_data *data + = (struct fbsd_collect_regset_section_cb_data *) cb_data; gdb_assert (regset->collect_regset); diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 9dc342d..7c24eaa 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1558,7 +1558,8 @@ linux_collect_regset_section_cb (const char *sect_name, int size, const char *human_name, void *cb_data) { char *buf; - struct linux_collect_regset_section_cb_data *data = cb_data; + struct linux_collect_regset_section_cb_data *data + = (struct linux_collect_regset_section_cb_data *) cb_data; if (data->abort_iteration) return; -- cgit v1.1