set_gdbarch_sw_breakpoint_from_kind (gdbarch,
alpha_breakpoint::bp_from_kind);
set_gdbarch_decr_pc_after_break (gdbarch, ALPHA_INSN_SIZE);
- set_gdbarch_cannot_step_breakpoint (gdbarch, 1);
+ set_gdbarch_cannot_step_breakpoint (gdbarch, true);
/* Handles single stepping of atomic sequences. */
set_gdbarch_get_next_pcs (gdbarch, alpha_software_single_step);
set_gdbarch_print_insn (gdbarch, arc_delayed_print_insn);
- set_gdbarch_cannot_step_breakpoint (gdbarch, 1);
+ set_gdbarch_cannot_step_breakpoint (gdbarch, true);
/* "nonsteppable" watchpoint means that watchpoint triggers before
instruction is committed, therefore it is required to remove watchpoint
gdbarch_make_symbol_special_ftype *make_symbol_special = default_make_symbol_special;
gdbarch_adjust_dwarf2_addr_ftype *adjust_dwarf2_addr = default_adjust_dwarf2_addr;
gdbarch_adjust_dwarf2_line_ftype *adjust_dwarf2_line = default_adjust_dwarf2_line;
- int cannot_step_breakpoint = 0;
+ bool cannot_step_breakpoint = false;
int have_nonsteppable_watchpoint = 0;
gdbarch_address_class_type_flags_ftype *address_class_type_flags = nullptr;
gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_name = nullptr;
gdbarch->adjust_dwarf2_line = adjust_dwarf2_line;
}
-int
+bool
gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
void
set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch,
- int cannot_step_breakpoint)
+ bool cannot_step_breakpoint)
{
gdbarch->cannot_step_breakpoint = cannot_step_breakpoint;
}
extern CORE_ADDR gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch, CORE_ADDR addr, int rel);
extern void set_gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch, gdbarch_adjust_dwarf2_line_ftype *adjust_dwarf2_line);
-extern int gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch);
-extern void set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch, int cannot_step_breakpoint);
+extern bool gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch);
+extern void set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch, bool cannot_step_breakpoint);
/* See comment in target.h about continuable, steppable and
non-steppable watchpoints. */
)
Value(
- type="int",
+ type="bool",
name="cannot_step_breakpoint",
- predefault="0",
+ predefault="false",
invalid=False,
)