Value(
type="int",
name="believe_pcc_promotion",
- invalid=True,
+ invalid=False,
)
Method(
("int *", "optimizedp"),
("int *", "unavailablep"),
],
- invalid=True,
+ invalid=False,
)
Function(
("struct type *", "type"),
("const gdb_byte *", "buf"),
],
- invalid=True,
+ invalid=False,
)
Method(
Value(
type="int",
name="frame_red_zone_size",
- invalid=True,
+ invalid=False,
)
Method(
type="void",
name="displaced_step_restore_all_in_ptid",
params=[("inferior *", "parent_inf"), ("ptid_t", "child_ptid")],
- invalid=True,
+ invalid=False,
)
Method(
""",
type="const char *",
name="solib_symbols_extension",
- invalid=True,
+ invalid=False,
printer="pstring (gdbarch->solib_symbols_extension)",
)
/* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */
if (gdbarch->register_name == 0)
log.puts ("\n\tregister_name");
+ if (gdbarch->register_type == 0)
+ log.puts ("\n\tregister_type");
/* Skip verify of dummy_id, invalid_p == 0 */
/* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
/* Skip verify of push_dummy_call, has predicate. */
/* Skip verify of cannot_fetch_register, invalid_p == 0 */
/* Skip verify of cannot_store_register, invalid_p == 0 */
/* Skip verify of get_longjmp_target, has predicate. */
+ /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
/* Skip verify of convert_register_p, invalid_p == 0 */
+ /* Skip verify of register_to_value, invalid_p == 0 */
+ /* Skip verify of value_to_register, invalid_p == 0 */
/* Skip verify of value_from_register, invalid_p == 0 */
/* Skip verify of pointer_to_address, invalid_p == 0 */
/* Skip verify of address_to_pointer, invalid_p == 0 */
/* Skip verify of frame_num_args, has predicate. */
/* Skip verify of frame_align, has predicate. */
/* Skip verify of stabs_argument_has_addr, invalid_p == 0 */
+ /* Skip verify of frame_red_zone_size, invalid_p == 0 */
/* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
/* Skip verify of addr_bits_remove, invalid_p == 0 */
/* Skip verify of significant_addr_bit, invalid_p == 0 */
if ((! gdbarch->displaced_step_finish) != (! gdbarch->displaced_step_prepare))
log.puts ("\n\tdisplaced_step_finish");
/* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
+ /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0 */
/* Skip verify of relocate_instruction, has predicate. */
/* Skip verify of overlay_update, has predicate. */
/* Skip verify of core_read_description, has predicate. */
/* Skip verify of guess_tracepoint_registers, invalid_p == 0 */
/* Skip verify of auto_charset, invalid_p == 0 */
/* Skip verify of auto_wide_charset, invalid_p == 0 */
+ /* Skip verify of solib_symbols_extension, invalid_p == 0 */
/* Skip verify of has_dos_based_file_system, invalid_p == 0 */
/* Skip verify of gen_return_address, invalid_p == 0 */
/* Skip verify of info_proc, has predicate. */
gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
+ /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
if (gdbarch_debug >= 2)
fprintf_unfiltered (gdb_stdlog, "gdbarch_believe_pcc_promotion called\n");
return gdbarch->believe_pcc_promotion;
gdbarch_frame_red_zone_size (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
+ /* Skip verify of frame_red_zone_size, invalid_p == 0 */
if (gdbarch_debug >= 2)
fprintf_unfiltered (gdb_stdlog, "gdbarch_frame_red_zone_size called\n");
return gdbarch->frame_red_zone_size;
gdbarch_solib_symbols_extension (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
+ /* Skip verify of solib_symbols_extension, invalid_p == 0 */
if (gdbarch_debug >= 2)
fprintf_unfiltered (gdb_stdlog, "gdbarch_solib_symbols_extension called\n");
return gdbarch->solib_symbols_extension;
elif c.predefault is not None:
print(f" if (gdbarch->{c.name} == {c.predefault})", file=f)
print(f""" log.puts ("\\n\\t{c.name}");""", file=f)
+ elif c.invalid is True:
+ print(f" if (gdbarch->{c.name} == 0)", file=f)
+ print(f""" log.puts ("\\n\\t{c.name}");""", file=f)
+ else:
+ # We should not allow ourselves to simply do nothing here
+ # because no other case applies. If we end up here then
+ # either the input data needs adjusting so one of the
+ # above cases matches, or we need additional cases adding
+ # here.
+ raise Exception("unhandled case when generating gdbarch validation")
print(" if (!log.empty ())", file=f)
print(" internal_error (__FILE__, __LINE__,", file=f)
print(""" _("verify_gdbarch: the following are invalid ...%s"),""", file=f)