It will be used by the aarch64 port.
Approved-By: Tom Tromey <tom@tromey.com>
return x86_dr_stopped_by_watchpoint (&debug_reg_state);
}
-static CORE_ADDR
-x86_stopped_data_address (void)
+static std::vector<CORE_ADDR>
+x86_stopped_data_addresses ()
{
CORE_ADDR addr;
if (x86_dr_stopped_data_address (&debug_reg_state, &addr))
- return addr;
- return 0;
+ return { addr };
+ return {};
}
static void
i386_insert_point,
i386_remove_point,
x86_stopped_by_watchpoint,
- x86_stopped_data_address
+ x86_stopped_data_addresses,
};
std::vector<CORE_ADDR>
win32_process_target::stopped_data_addresses ()
{
- if (the_low_target.stopped_data_address != NULL)
- return { the_low_target.stopped_data_address () };
+ if (the_low_target.stopped_data_addresses != nullptr)
+ return the_low_target.stopped_data_addresses ();
else
return {};
}
int (*remove_point) (enum raw_bkpt_type type, CORE_ADDR addr,
int size, struct raw_breakpoint *bp);
int (*stopped_by_watchpoint) (void);
- CORE_ADDR (*stopped_data_address) (void);
+ std::vector<CORE_ADDR> (*stopped_data_addresses) ();
};
extern struct win32_target_ops the_low_target;