38 struct type *types[] =
75 error (
_(
"target already pushed"));
80 test_target_ops mock_target;
82 inferior mock_inferior (mock_ptid.pid ());
84 mock_inferior.gdbarch =
gdbarch;
85 mock_inferior.aspace = &mock_aspace;
86 thread_info mock_thread (&mock_inferior, mock_ptid);
124 for (
const auto &
type : types)
139 for (
auto j = 0; j < expected.size (); j++)
140 expected[j] = (
regnum + j) % 16;
148 int optim, unavail, ok;
154 buf.data (), &optim, &unavail);
178 selftests::register_to_value_test);
struct type * builtin_long_double
struct frame_info * get_current_frame(void)
struct type * builtin_unsigned_int
struct type * builtin_double_complex
void push_target(struct target_ops *t)
const struct builtin_type * builtin_type(struct gdbarch *gdbarch)
struct type * builtin_uint8
struct type * builtin_uint16
int gdbarch_num_regs(struct gdbarch *gdbarch)
void register_test_foreach_arch(const std::string &name, self_test_foreach_arch_function *function)
struct type * builtin_complex
int gdbarch_register_to_value(struct gdbarch *gdbarch, struct frame_info *frame, int regnum, struct type *type, gdb_byte *buf, int *optimizedp, int *unavailablep)
struct type * builtin_int32
int gdbarch_convert_register_p(struct gdbarch *gdbarch, int regnum, struct type *type)
struct type * builtin_short
struct type * builtin_char16
scoped_restore_tmpl< T > make_scoped_restore(T *var)
int gdbarch_num_pseudo_regs(struct gdbarch *gdbarch)
struct type * builtin_int128
struct type * builtin_unsigned_long
struct type * builtin_char32
struct target_ops current_target
struct type * builtin_int16
struct inferior * inferior_list
bool target_float_from_string(gdb_byte *addr, const struct type *type, const std::string &string)
struct type * builtin_uint32
struct type * builtin_long
struct type * builtin_bool
struct type * builtin_uint128
struct type * builtin_unsigned_long_long
struct type * builtin_signed_char
struct type * builtin_string
struct type * builtin_unsigned_short
struct type * builtin_char
struct type * builtin_double
void gdbarch_value_to_register(struct gdbarch *gdbarch, struct frame_info *frame, int regnum, struct type *type, const gdb_byte *buf)
#define TYPE_CODE(thistype)
struct thread_info * thread_list
struct type * builtin_long_long
struct type * builtin_int64
#define TYPE_LENGTH(thistype)
struct type * builtin_uint64
struct type * builtin_int8
struct type * builtin_void
void pop_all_targets_at_and_above(enum strata stratum)
void error(const char *fmt,...)
void _initialize_gdbarch_selftests(void)
void set_current_inferior(struct inferior *inf)
#define SELF_CHECK(VALUE)
struct type * builtin_float
struct type * builtin_int