52 struct value *tem = val;
75 && (i = strlen (name), name[i - 1] ==
']'))
79 unsigned int things_printed = 0;
98 while (i < length && things_printed < options->print_max)
107 element = next_element;
120 for (reps = 1; i + reps <
length; reps++)
130 if (next_element != element)
157 while (i < length && things_printed < options->print_max)
178 for (reps = 1; i + reps < length; reps++)
219 "java.lang.String") == 0
224 struct type *char_type;
225 struct value *data_val;
227 struct value *boffset_val;
228 unsigned long boffset;
229 struct value *count_val;
271 const struct value *val,
274 int i,
len, n_baseclasses;
282 if (n_baseclasses > 0)
286 for (i = 0; i < n_baseclasses; i++)
290 const char *basename =
TYPE_NAME (baseclass);
296 if (basename != NULL && strcmp (basename,
"java.lang.Object") == 0)
312 base_valaddr = valaddr;
315 offset + boffset, address,
316 stream, recurse + 1, val, options);
321 if (!len && n_baseclasses == 1)
327 for (i = n_baseclasses; i <
len; i++)
336 if (name != NULL && strcmp (name,
"class") == 0)
341 else if (n_baseclasses > 0)
370 DMGL_PARAMS | DMGL_ANSI);
435 address, stream, recurse + 1, val, &opts,
457 struct ui_file *stream,
int recurse,
458 const struct value *val,
462 struct type *target_type;
472 val, options, 0, stream);
509 val, &opts, 0, stream);
514 && strcmp (
TYPE_NAME (type),
"char") == 0))
523 address, stream, recurse, val, options);
527 c_val_print (type, valaddr, embedded_offset, address, stream,
528 recurse, val, options);
void val_print_scalar_formatted(struct type *type, const gdb_byte *valaddr, int embedded_offset, const struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
ULONGEST extract_unsigned_integer(const gdb_byte *, int, enum bfd_endian)
void annotate_field_value(void)
struct value * value_mark(void)
void fprintf_symbol_filtered(struct ui_file *stream, const char *name, enum language lang, int arg_mode)
CORE_ADDR value_raw_address(struct value *value)
struct value * value_addr(struct value *arg1)
void java_val_print(struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options)
struct value * value_field_bitfield(struct type *type, int fieldno, const gdb_byte *valaddr, int embedded_offset, const struct value *val)
void value_free_to_mark(struct value *mark)
struct type * java_primitive_type_from_name(struct gdbarch *gdbarch, const char *name, int namelen)
static void java_print_value_fields(struct type *type, const gdb_byte *valaddr, int offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options)
#define TYPE_FIELD_NAME(thistype, n)
#define TYPE_N_BASECLASSES(thistype)
int value_offset(const struct value *value)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
void java_value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
#define TYPE_NAME(thistype)
int gdbarch_ptr_bit(struct gdbarch *gdbarch)
struct value * value_at(struct type *type, CORE_ADDR addr)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
const struct builtin_java_type * builtin_java_type(struct gdbarch *gdbarch)
#define BASETYPE_VIA_VIRTUAL(thistype, index)
void val_print_type_code_int(struct type *type, const gdb_byte *valaddr, struct ui_file *stream)
void c_val_print(struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *)
void type_print(struct type *type, const char *varstring, struct ui_file *stream, int show)
void set_value_lazy(struct value *value, int val)
struct value * value_ind(struct value *arg1)
void annotate_field_name_end(void)
#define TYPE_FIELD(thistype, n)
#define TYPE_FIELD_TYPE(thistype, n)
enum val_prettyformat prettyformat
struct value * allocate_value(struct type *type)
struct type * type_from_class(struct gdbarch *gdbarch, struct value *clas)
const char * paddress(struct gdbarch *gdbarch, CORE_ADDR addr)
void set_value_address(struct value *value, CORE_ADDR addr)
struct value * value_struct_elt(struct value **argp, struct value **args, const char *name, int *static_memfuncp, const char *err)
struct type * check_typedef(struct type *type)
int field_is_static(struct field *f)
struct value * value_static_field(struct type *type, int fieldno)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
void fputs_filtered(const char *linebuffer, struct ui_file *stream)
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
#define TYPE_FIELD_IGNORE(thistype, n)
struct gdbarch * get_type_arch(const struct type *type)
void set_value_offset(struct value *value, int offset)
#define TYPE_BASECLASS(thistype, index)
void wrap_here(char *indent)
struct value * java_class_from_object(struct value *obj_val)
#define TYPE_FIELD_PACKED(thistype, n)
int get_java_object_header_size(struct gdbarch *gdbarch)
void read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
#define TYPE_FIELD_BITSIZE(thistype, n)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
#define TYPE_FIELD_BITPOS(thistype, n)
int value_bits_synthetic_pointer(const struct value *value, int offset, int length)
void print_spaces_filtered(int n, struct ui_file *stream)
int value_contents_eq(const struct value *val1, int offset1, const struct value *val2, int offset2, int length)
const struct language_defn * current_language
#define TYPE_TARGET_TYPE(thistype)
void print_longest(struct ui_file *stream, int format, int use_c_format, LONGEST val_long)
void value_fetch_lazy(struct value *val)
#define TYPE_CODE(thistype)
#define TYPE_NFIELDS(thistype)
int print_address_demangle(const struct value_print_options *opts, struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle)
#define CHECK_TYPEDEF(TYPE)
int value_logical_not(struct value *arg1)
#define TYPE_TAG_NAME(type)
int is_object_type(struct type *type)
void annotate_field_end(void)
unsigned long long ULONGEST
int value_embedded_offset(struct value *value)
struct type * builtin_char
struct type * value_type(const struct value *value)
CORE_ADDR value_as_address(struct value *val)
const char * type_name_no_tag(const struct type *type)
#define TYPE_LENGTH(thistype)
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)
#define LA_PRINT_CHAR(ch, type, stream)
LONGEST extract_signed_integer(const gdb_byte *, int, enum bfd_endian)
CORE_ADDR value_address(const struct value *value)
enum bfd_endian byte_order
void val_print(struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, const struct language_defn *language)
struct type * lookup_pointer_type(struct type *type)
void annotate_field_begin(struct type *type)
const ULONGEST const LONGEST len