/* Native-dependent code for x86 (i386 and x86-64).
- Low level functions to implement Oeprating System specific
+ Low level functions to implement Operating System specific
code to manipulate x86 debug registers.
- Copyright (C) 2009-2018 Free Software Foundation, Inc.
+ Copyright (C) 2009-2020 Free Software Foundation, Inc.
This file is part of GDB.
{
/* Hook in the x86 hardware watchpoints/breakpoints support. */
- /* After a watchpoint trap, the PC points to the instruction after
- the one that caused the trap. Therefore we don't need to step
- over it. But we do need to reset the status register to avoid
- another trap. */
- bool have_continuable_watchpoint () override
- { return true; }
-
int can_use_hw_breakpoint (enum bptype type, int cnt, int othertype) override
{ return x86_can_use_hw_breakpoint (type, cnt, othertype); }
struct bp_target_info *bp_tgt) override
{ return x86_remove_hw_breakpoint (gdbarch, bp_tgt); }
- int stopped_by_watchpoint () override
+ bool stopped_by_watchpoint () override
{ return x86_stopped_by_watchpoint (); }
- int stopped_data_address (CORE_ADDR *addr_p) override
+ bool stopped_data_address (CORE_ADDR *addr_p) override
{ return x86_stopped_data_address (addr_p); }
/* A target must provide an implementation of the
"supports_stopped_by_hw_breakpoint" target method before this
callback will be used. */
- int stopped_by_hw_breakpoint () override
+ bool stopped_by_hw_breakpoint () override
{ return x86_stopped_by_hw_breakpoint (); }
};