gdbarch_ecoff_reg_to_regnum_ftype *ecoff_reg_to_regnum = no_op_reg_to_regnum;
gdbarch_sdb_reg_to_regnum_ftype *sdb_reg_to_regnum = no_op_reg_to_regnum;
gdbarch_dwarf2_reg_to_regnum_ftype *dwarf2_reg_to_regnum = no_op_reg_to_regnum;
- gdbarch_register_name_ftype *register_name = 0;
+ gdbarch_register_name_ftype *register_name = nullptr;
gdbarch_register_type_ftype *register_type = nullptr;
gdbarch_dummy_id_ftype *dummy_id = default_dummy_id;
int deprecated_fp_regnum = -1;
gdbarch_return_value_as_value_ftype *return_value_as_value = default_gdbarch_return_value;
gdbarch_get_return_buf_addr_ftype *get_return_buf_addr = default_get_return_buf_addr;
gdbarch_return_in_first_hidden_param_p_ftype *return_in_first_hidden_param_p = default_return_in_first_hidden_param_p;
- gdbarch_skip_prologue_ftype *skip_prologue = 0;
+ gdbarch_skip_prologue_ftype *skip_prologue = nullptr;
gdbarch_skip_main_prologue_ftype *skip_main_prologue = nullptr;
gdbarch_skip_entrypoint_ftype *skip_entrypoint = nullptr;
- gdbarch_inner_than_ftype *inner_than = 0;
+ gdbarch_inner_than_ftype *inner_than = nullptr;
gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc = default_breakpoint_from_pc;
- gdbarch_breakpoint_kind_from_pc_ftype *breakpoint_kind_from_pc = 0;
+ gdbarch_breakpoint_kind_from_pc_ftype *breakpoint_kind_from_pc = nullptr;
gdbarch_sw_breakpoint_from_kind_ftype *sw_breakpoint_from_kind = NULL;
gdbarch_breakpoint_kind_from_current_state_ftype *breakpoint_kind_from_current_state = default_breakpoint_kind_from_current_state;
gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address = nullptr;
gdbarch_gcore_bfd_target_p (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
- return gdbarch->gcore_bfd_target != 0;
+ return gdbarch->gcore_bfd_target != NULL;
}
const char *
""",
type="int",
name="dwarf2_addr_size",
- predefault="0",
postdefault="gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT",
)
params=[("int", "regnr")],
param_checks=["regnr >= 0", "regnr < gdbarch_num_cooked_regs (gdbarch)"],
result_checks=["result != nullptr"],
- predefault="0",
invalid=True,
)
type="CORE_ADDR",
name="skip_prologue",
params=[("CORE_ADDR", "ip")],
- predefault="0",
invalid=True,
)
type="int",
name="inner_than",
params=[("CORE_ADDR", "lhs"), ("CORE_ADDR", "rhs")],
- predefault="0",
invalid=True,
)
type="int",
name="breakpoint_kind_from_pc",
params=[("CORE_ADDR *", "pcptr")],
- predefault="0",
invalid=True,
)
type="const char *",
name="gcore_bfd_target",
predicate=True,
- predefault="0",
printer="pstring (gdbarch->gcore_bfd_target)",
invalid=True,
)
""",
type="int",
name="vbit_in_delta",
- predefault="0",
invalid=False,
)
""",
type="ULONGEST",
name="max_insn_length",
- predicate=True,
predefault="0",
+ predicate=True,
invalid=True,
)
""",
type="const char *",
name="xml_syscall_file",
- predefault="0",
invalid=False,
printer="pstring (gdbarch->xml_syscall_file)",
)
""",
type="struct syscalls_info *",
name="syscalls_info",
- predefault="0",
invalid=False,
printer="host_address_to_string (gdbarch->syscalls_info)",
)
""",
type="const char *const *",
name="stap_integer_prefixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_integer_prefixes)",
)
""",
type="const char *const *",
name="stap_integer_suffixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_integer_suffixes)",
)
""",
type="const char *const *",
name="stap_register_prefixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_register_prefixes)",
)
""",
type="const char *const *",
name="stap_register_suffixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_register_suffixes)",
)
""",
type="const char *const *",
name="stap_register_indirection_prefixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_register_indirection_prefixes)",
)
""",
type="const char *const *",
name="stap_register_indirection_suffixes",
- predefault="0",
invalid=False,
printer="pstring_list (gdbarch->stap_register_indirection_suffixes)",
)
""",
type="const char *",
name="stap_gdb_register_prefix",
- predefault="0",
invalid=False,
printer="pstring (gdbarch->stap_gdb_register_prefix)",
)
""",
type="const char *",
name="stap_gdb_register_suffix",
- predefault="0",
invalid=False,
printer="pstring (gdbarch->stap_gdb_register_suffix)",
)
""",
type="const char *",
name="disassembler_options_implicit",
- predefault="0",
invalid=False,
printer="pstring (gdbarch->disassembler_options_implicit)",
)
Value(
type="char **",
name="disassembler_options",
- predefault="0",
invalid=False,
printer="pstring_ptr (gdbarch->disassembler_options)",
)
Value(
type="const disasm_options_and_args_t *",
name="valid_disassembler_options",
- predefault="0",
invalid=False,
printer="host_address_to_string (gdbarch->valid_disassembler_options)",
)