This replaces some casts to 'code_breakpoint *' with
checked_static_cast.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
handle_jit_event (bs->bp_location_at->address);
break;
case bp_gnu_ifunc_resolver:
- gnu_ifunc_resolver_stop ((code_breakpoint *) b);
+ gnu_ifunc_resolver_stop
+ (gdb::checked_static_cast<code_breakpoint *> (b));
break;
case bp_gnu_ifunc_resolver_return:
- gnu_ifunc_resolver_return_stop ((code_breakpoint *) b);
+ gnu_ifunc_resolver_return_stop
+ (gdb::checked_static_cast<code_breakpoint *> (b));
break;
}
}
"gnu-indirect-function breakpoint type %d"),
(int) b->type);
}
- b = (code_breakpoint *) b_next;
+ b = gdb::checked_static_cast<code_breakpoint *> (b_next);
}
gdb_assert (b->type == bp_gnu_ifunc_resolver);
gdb_assert (b->has_single_location ());