gdbarch_core_xfer_siginfo_ftype *core_xfer_siginfo = nullptr;
gdbarch_core_read_x86_xsave_layout_ftype *core_read_x86_xsave_layout = nullptr;
const char * gcore_bfd_target = 0;
- int vtable_function_descriptors = 0;
+ bool vtable_function_descriptors = false;
int vbit_in_delta = 0;
ULONGEST max_insn_length = 0;
gdbarch_displaced_step_copy_insn_ftype *displaced_step_copy_insn = nullptr;
gdbarch->gcore_bfd_target = gcore_bfd_target;
}
-int
+bool
gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
void
set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch,
- int vtable_function_descriptors)
+ bool vtable_function_descriptors)
{
gdbarch->vtable_function_descriptors = vtable_function_descriptors;
}
/* If the elements of C++ vtables are in-place function descriptors rather
than normal function pointers (which may point to code or a descriptor),
- set this to one. */
+ set this to true. */
-extern int gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch);
-extern void set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch, int vtable_function_descriptors);
+extern bool gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch);
+extern void set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch, bool vtable_function_descriptors);
/* Set if the least significant bit of the delta is used instead of the least
significant bit of the pfn for pointers to virtual member functions. */
comment="""
If the elements of C++ vtables are in-place function descriptors rather
than normal function pointers (which may point to code or a descriptor),
-set this to one.
+set this to true.
""",
- type="int",
+ type="bool",
name="vtable_function_descriptors",
- predefault="0",
+ predefault="false",
invalid=False,
)
/* The virtual table contains 16-byte descriptors, not pointers to
descriptors. */
- set_gdbarch_vtable_function_descriptors (gdbarch, 1);
+ set_gdbarch_vtable_function_descriptors (gdbarch, true);
/* Hook in ABI-specific overrides, if they have been registered. */
gdbarch_init_osabi (info, gdbarch);