34 CORE_ADDR
address, CORE_ADDR addr,
39 struct ui_file *stream,
int recurse,
52 if (
type->
code () == TYPE_CODE_STRUCT)
62 error (_(
"expecting long_set"));
73 LONGEST previous_low = 0;
74 LONGEST previous_high= 0;
75 LONGEST i, low_bound, high_bound;
76 LONGEST field_low, field_high;
94 " %s }", _(
"<unknown bounds of set>"));
98 target =
range->target_type ();
102 for (i = low_bound; i <= high_bound; i++)
106 valaddr + embedded_offset, i);
108 error (_(
"bit test is out of range"));
127 if (previous_low+1 < previous_high)
129 if (previous_low+1 < previous_high)
142 target =
range->target_type ();
147 if (previous_low+1 < previous_high)
160 struct ui_file *stream,
int recurse,
180 gdb_printf (stream,
", HIGH = %d}", (
int) len);
185 CORE_ADDR address, CORE_ADDR addr,
193 if (elttype->
code () == TYPE_CODE_FUNC)
210 if (elttype->
length () == 1
211 && elttype->
code () == TYPE_CODE_INT
226 const gdb_byte *valaddr,
241 struct value *deref_val =
259 struct ui_file *stream,
int recurse,
271 && (
type->
code () == TYPE_CODE_CHAR)))
306 struct type *elttype;
309 const CORE_ADDR address = val->
address ();
314 case TYPE_CODE_ARRAY:
320 if (elttype->
length () == 1 &&
321 ((elttype->
code () == TYPE_CODE_INT)
323 && (elttype->
code () == TYPE_CODE_CHAR)))
331 unsigned int temp_len;
337 && temp_len < print_max_chars);
370 case TYPE_CODE_UNION:
377 case TYPE_CODE_STRUCT:
392 _(
"<incomplete type>"));
398 LONGEST low_bound, high_bound;
413 for (i = low_bound; i <= high_bound; i++)
420 goto maybe_bad_bstring;
429 if (i + 1 <= high_bound
435 while (i + 1 <= high_bound
447 case TYPE_CODE_RANGE:
461 case TYPE_CODE_METHOD:
463 case TYPE_CODE_ERROR:
void cp_print_value_fields(struct value *, struct ui_file *, int, const struct value_print_options *, struct type **, int)
static void print_unpacked_pointer(struct type *type, struct type *elttype, struct type *unresolved_elttype, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value_print_options *options)
ui_file_style style() const
void value_print_inner(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) const override
void printstr(struct ui_file *stream, struct type *elttype, const gdb_byte *string, unsigned int length, const char *encoding, int force_ellipses, const struct value_print_options *options) const override
cli_style_option metadata_style
bool get_discrete_bounds(struct type *type, LONGEST *lowp, LONGEST *highp)
struct type * check_typedef(struct type *type)
#define TYPE_N_BASECLASSES(thistype)
const struct language_defn * current_language
static const char * range
int m2_is_unbounded_array(struct type *type)
int m2_is_long_set(struct type *type)
static const struct generic_val_print_decorations m2_decorations
static void print_variable_at_address(struct type *type, const gdb_byte *valaddr, struct ui_file *stream, int recurse, const struct value_print_options *options)
int get_long_set_bounds(struct type *type, LONGEST *low, LONGEST *high)
static void m2_print_long_set(struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream)
static void m2_print_array_contents(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, int len)
static int print_unpacked_pointer(struct type *type, CORE_ADDR address, CORE_ADDR addr, const struct value_print_options *options, struct ui_file *stream)
static void m2_print_unbounded_array(struct value *value, struct ui_file *stream, int recurse, const struct value_print_options *options)
LONGEST const_val() const
LONGEST loc_bitpos() const
struct type * type() const
enum language la_language
struct type * target_type() const
struct field & field(int idx) const
unsigned int num_fields() const
range_bounds * bounds() const
type * index_type() const
LONGEST embedded_offset() const
struct type * type() const
gdb::array_view< const gdb_byte > contents_for_printing()
void print_type_scalar(struct type *type, LONGEST val, struct ui_file *stream)
const char * paddress(struct gdbarch *gdbarch, CORE_ADDR addr)
void fprintf_styled(struct ui_file *stream, const ui_file_style &style, const char *format,...)
void gdb_printf(struct ui_file *stream, const char *format,...)
void fputs_styled(const char *linebuffer, const ui_file_style &style, struct ui_file *stream)
void gdb_puts(const char *linebuffer, struct ui_file *stream)
int value_bit_index(struct type *type, const gdb_byte *valaddr, int index)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr, frame_info_ptr frame)
struct value * value_at(struct type *type, CORE_ADDR addr)
struct value * value_cast(struct type *type, struct value *arg2)
void generic_value_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct generic_val_print_decorations *decorations)
void value_print_scalar_formatted(struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
int val_print_string(struct type *elttype, const char *encoding, CORE_ADDR addr, int len, struct ui_file *stream, const struct value_print_options *options)
void value_print_array_elements(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, unsigned int i)
void common_val_print(struct value *value, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
void print_function_pointer_address(const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream)
static unsigned int get_print_max_chars(const struct value_print_options *options)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
LONGEST unpack_field_as_long(struct type *type, const gdb_byte *valaddr, int fieldno)