diff options
Diffstat (limited to 'gdb/break-catch-sig.c')
-rw-r--r-- | gdb/break-catch-sig.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 419d226..f117bd5 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -107,7 +107,7 @@ signal_catchpoint_dtor (struct breakpoint *b) static int signal_catchpoint_insert_location (struct bp_location *bl) { - struct signal_catchpoint *c = (void *) bl->owner; + struct signal_catchpoint *c = (struct signal_catchpoint *) bl->owner; int i; if (c->signals_to_be_caught != NULL) @@ -139,7 +139,7 @@ signal_catchpoint_insert_location (struct bp_location *bl) static int signal_catchpoint_remove_location (struct bp_location *bl) { - struct signal_catchpoint *c = (void *) bl->owner; + struct signal_catchpoint *c = (struct signal_catchpoint *) bl->owner; int i; if (c->signals_to_be_caught != NULL) @@ -180,7 +180,8 @@ signal_catchpoint_breakpoint_hit (const struct bp_location *bl, CORE_ADDR bp_addr, const struct target_waitstatus *ws) { - const struct signal_catchpoint *c = (void *) bl->owner; + const struct signal_catchpoint *c + = (const struct signal_catchpoint *) bl->owner; gdb_signal_type signal_number; if (ws->kind != TARGET_WAITKIND_STOPPED) @@ -238,7 +239,7 @@ static void signal_catchpoint_print_one (struct breakpoint *b, struct bp_location **last_loc) { - struct signal_catchpoint *c = (void *) b; + struct signal_catchpoint *c = (struct signal_catchpoint *) b; struct value_print_options opts; struct ui_out *uiout = current_uiout; @@ -296,7 +297,7 @@ signal_catchpoint_print_one (struct breakpoint *b, static void signal_catchpoint_print_mention (struct breakpoint *b) { - struct signal_catchpoint *c = (void *) b; + struct signal_catchpoint *c = (struct signal_catchpoint *) b; if (c->signals_to_be_caught) { @@ -330,7 +331,7 @@ signal_catchpoint_print_mention (struct breakpoint *b) static void signal_catchpoint_print_recreate (struct breakpoint *b, struct ui_file *fp) { - struct signal_catchpoint *c = (void *) b; + struct signal_catchpoint *c = (struct signal_catchpoint *) b; fprintf_unfiltered (fp, "catch signal"); |