bool
ada_catchpoint::should_stop_exception (const struct bp_location *bl) const
{
- struct ada_catchpoint *c = (struct ada_catchpoint *) bl->owner;
+ ada_catchpoint *c = gdb::checked_static_cast<ada_catchpoint *> (bl->owner);
const struct ada_catchpoint_location *ada_loc
= (const struct ada_catchpoint_location *) bl;
bool stop;
int
signal_catchpoint::insert_location (struct bp_location *bl)
{
- struct signal_catchpoint *c = (struct signal_catchpoint *) bl->owner;
+ signal_catchpoint *c
+ = gdb::checked_static_cast<signal_catchpoint *> (bl->owner);
if (!c->signals_to_be_caught.empty ())
{
signal_catchpoint::remove_location (struct bp_location *bl,
enum remove_bp_reason reason)
{
- struct signal_catchpoint *c = (struct signal_catchpoint *) bl->owner;
+ signal_catchpoint *c
+ = gdb::checked_static_cast<signal_catchpoint *> (bl->owner);
if (!c->signals_to_be_caught.empty ())
{
CORE_ADDR bp_addr,
const target_waitstatus &ws)
{
- const struct signal_catchpoint *c
- = (const struct signal_catchpoint *) bl->owner;
+ const signal_catchpoint *c
+ = gdb::checked_static_cast<const signal_catchpoint *> (bl->owner);
gdb_signal signal_number;
if (ws.kind () != TARGET_WAITKIND_STOPPED)
static bool
catching_syscall_number_1 (struct breakpoint *b, int syscall_number)
{
-
if (is_syscall_catchpoint_enabled (b))
{
- struct syscall_catchpoint *c = (struct syscall_catchpoint *) b;
+ syscall_catchpoint *c
+ = gdb::checked_static_cast<syscall_catchpoint *> (b);
if (!c->syscalls_to_be_caught.empty ())
{