# this string is the expression that should evaluate to true when the
# field is invalid.
#
-# Otherwise, if "invalid" is True, then the generic validation
-# function is used: the field is considered invalid it still contains
-# its default value. This validation is what is used within the _p
-# predicate function if the field has "predicate" set to True.
+# Otherwise, if "invalid" is True (the default), then the generic
+# validation function is used: the field is considered invalid it
+# still contains its default value. This validation is what is used
+# within the _p predicate function if the field has "predicate" set to
+# True.
#
# Function and Method share:
#
name="bfloat16_format",
predefault="floatformats_bfloat16",
printer="pformat (gdbarch, gdbarch->bfloat16_format)",
+ invalid=False,
)
Value(
name="half_format",
predefault="floatformats_ieee_half",
printer="pformat (gdbarch, gdbarch->half_format)",
+ invalid=False,
)
Value(
name="float_format",
predefault="floatformats_ieee_single",
printer="pformat (gdbarch, gdbarch->float_format)",
+ invalid=False,
)
Value(
name="double_format",
predefault="floatformats_ieee_double",
printer="pformat (gdbarch, gdbarch->double_format)",
+ invalid=False,
)
Value(
name="long_double_format",
predefault="floatformats_ieee_double",
printer="pformat (gdbarch, gdbarch->long_double_format)",
+ invalid=False,
)
Value(
name="wchar_signed",
predefault="-1",
postdefault="1",
+ invalid=False,
)
Method(
name="addr_bit",
predefault="0",
postdefault="gdbarch_ptr_bit (gdbarch)",
+ invalid=False,
)
Value(
type="int",
name="dwarf2_addr_size",
postdefault="gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT",
+ invalid=False,
)
Value(
name="char_signed",
predefault="-1",
postdefault="1",
+ invalid=False,
)
Function(
type="int",
name="num_regs",
predefault="-1",
- invalid=True,
)
Value(
params=[("int", "regnr")],
param_checks=["regnr >= 0", "regnr < gdbarch_num_cooked_regs (gdbarch)"],
result_checks=["result != nullptr"],
- invalid=True,
)
Method(
type="struct type *",
name="register_type",
params=[("int", "reg_nr")],
- invalid=True,
)
Method(
type="CORE_ADDR",
name="skip_prologue",
params=[("CORE_ADDR", "ip")],
- invalid=True,
)
Method(
type="int",
name="inner_than",
params=[("CORE_ADDR", "lhs"), ("CORE_ADDR", "rhs")],
- invalid=True,
)
Method(
type="int",
name="breakpoint_kind_from_pc",
params=[("CORE_ADDR *", "pcptr")],
- invalid=True,
)
Method(
name="so_ops",
predefault="&solib_target_so_ops",
printer="host_address_to_string (gdbarch->so_ops)",
+ invalid=False,
)
Method(
name="gcore_bfd_target",
predicate=True,
printer="pstring (gdbarch->gcore_bfd_target)",
- invalid=True,
)
Value(
name="max_insn_length",
predefault="0",
predicate=True,
- invalid=True,
)
Method(
predicate: bool = False,
predefault: Optional[str] = None,
postdefault: Optional[str] = None,
- invalid: Union[bool, str] = False,
+ invalid: Union[bool, str] = True,
params: Optional[List[Tuple[str, str]]] = None,
param_checks: Optional[List[str]] = None,
result_checks: Optional[List[str]] = None,
predicate: bool = False,
predefault: Optional[str] = None,
postdefault: Optional[str] = None,
- invalid: Union[bool, str] = False,
+ invalid: Union[bool, str] = True,
printer: Optional[str] = None,
):
super().__init__(
predicate: bool = False,
predefault: Optional[str] = None,
postdefault: Optional[str] = None,
- invalid: Union[bool, str] = False,
+ invalid: Union[bool, str] = True,
printer: Optional[str] = None,
param_checks: Optional[List[str]] = None,
result_checks: Optional[List[str]] = None,