GDB (xrefs)
|
#include "defs.h"
#include "gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "gdbcore.h"
#include "m2-lang.h"
#include "target.h"
#include "language.h"
#include "demangle.h"
#include "c-lang.h"
#include "typeprint.h"
#include "cp-abi.h"
Go to the source code of this file.
Functions | |
static void | m2_print_bounds (struct type *type, struct ui_file *stream, int show, int level, int print_high) |
static void | m2_typedef (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_array (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_pointer (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_ref (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_procedure (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_union (struct type *, struct ui_file *) |
static void | m2_enum (struct type *, struct ui_file *, int, int) |
static void | m2_range (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static void | m2_type_name (struct type *type, struct ui_file *stream) |
static void | m2_short_set (struct type *type, struct ui_file *stream, int show, int level) |
static int | m2_long_set (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static int | m2_unbounded_array (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | m2_record_fields (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | m2_unknown (const char *s, struct type *type, struct ui_file *stream, int show, int level) |
int | m2_is_long_set (struct type *type) |
int | m2_is_long_set_of_type (struct type *type, struct type **of_type) |
int | m2_is_unbounded_array (struct type *type) |
void | m2_print_type (struct type *type, const char *varstring, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
void | m2_print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream) |
static int | m2_get_discrete_bounds (struct type *type, LONGEST *lowp, LONGEST *highp) |
|
static |
Definition at line 223 of file m2-typeprint.c.
References fprintf_filtered(), m2_print_bounds(), m2_print_type(), TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, TYPE_INDEX_TYPE, TYPE_LENGTH, and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
Definition at line 595 of file m2-typeprint.c.
References fprintf_filtered(), fputs_filtered(), len, plongest(), QUIT, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_NFIELDS, TYPE_TAG_NAME, and wrap_here().
Referenced by m2_print_type().
Definition at line 374 of file m2-typeprint.c.
References CHECK_TYPEDEF, get_discrete_bounds(), TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_CHAR, TYPE_LENGTH, and TYPE_UNSIGNED.
Referenced by m2_is_long_set_of_type().
Definition at line 335 of file m2-typeprint.c.
References len, range, TYPE_CODE, TYPE_CODE_SET, TYPE_CODE_STRUCT, TYPE_FIELD_NAME, TYPE_FIELD_TYPE, TYPE_HIGH_BOUND, TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_N_BASECLASSES, and TYPE_NFIELDS.
Referenced by m2_long_set(), and m2_val_print().
Definition at line 400 of file m2-typeprint.c.
References _, error(), len, m2_get_discrete_bounds(), range, TYPE_CODE, TYPE_CODE_STRUCT, TYPE_FIELD_TYPE, TYPE_HIGH_BOUND, TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_N_BASECLASSES, TYPE_NFIELDS, and TYPE_TARGET_TYPE.
Referenced by m2_long_set().
Definition at line 489 of file m2-typeprint.c.
References TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_FIELD_NAME, TYPE_FIELD_TYPE, and TYPE_NFIELDS.
Referenced by evaluate_subexp_modula2(), m2_unbounded_array(), and m2_val_print().
|
static |
Definition at line 430 of file m2-typeprint.c.
References _, fprintf_filtered(), fputs_filtered(), get_long_set_bounds(), len, m2_is_long_set(), m2_is_long_set_of_type(), m2_print_bounds(), m2_print_type(), TYPE_FIELD_TYPE, TYPE_INDEX_TYPE, TYPE_N_BASECLASSES, TYPE_NAME, TYPE_NFIELDS, and TYPE_TAG_NAME.
Referenced by m2_print_type().
|
static |
Definition at line 246 of file m2-typeprint.c.
References fprintf_filtered(), m2_print_type(), TYPE_CONST, and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
|
static |
Definition at line 306 of file m2-typeprint.c.
References print_type_scalar(), TYPE_HIGH_BOUND, TYPE_LOW_BOUND, TYPE_NFIELDS, and TYPE_TARGET_TYPE.
Referenced by m2_array(), m2_long_set(), and m2_short_set().
void m2_print_type | ( | struct type * | type, |
const char * | varstring, | ||
struct ui_file * | stream, | ||
int | show, | ||
int | level, | ||
const struct type_print_options * | flags | ||
) |
Definition at line 72 of file m2-typeprint.c.
References _, CHECK_TYPEDEF, fputs_filtered(), m2_array(), m2_enum(), m2_long_set(), m2_pointer(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_short_set(), m2_type_name(), m2_typedef(), m2_unbounded_array(), m2_union(), m2_unknown(), QUIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, and wrap_here().
Referenced by m2_array(), m2_long_set(), m2_pointer(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_typedef(), and m2_unbounded_array().
Definition at line 160 of file m2-typeprint.c.
References CHECK_TYPEDEF, fprintf_filtered(), SYMBOL_LINKAGE_NAME, SYMBOL_PRINT_NAME, SYMBOL_TYPE, TYPE_NAME, and type_print().
|
static |
Definition at line 278 of file m2-typeprint.c.
References fprintf_filtered(), fputs_filtered(), len, m2_print_type(), m2_type_name(), TYPE_CODE, TYPE_CODE_VOID, TYPE_FIELD_TYPE, TYPE_NFIELDS, TYPE_TARGET_TYPE, and wrap_here().
Referenced by m2_print_type().
|
static |
Definition at line 187 of file m2-typeprint.c.
References fprintf_filtered(), m2_print_type(), print_type_scalar(), TYPE_HIGH_BOUND, TYPE_LOW_BOUND, and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
|
static |
Definition at line 535 of file m2-typeprint.c.
References _, fprintf_filtered(), fprintfi_filtered(), fputs_filtered(), len, m2_print_type(), print_spaces_filtered(), QUIT, startswith(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_FIELD_BITSIZE, TYPE_FIELD_NAME, TYPE_FIELD_PACKED, TYPE_FIELD_TYPE, TYPE_N_BASECLASSES, TYPE_NFIELDS, TYPE_TAG_NAME, and wrap_here().
Referenced by m2_print_type().
|
static |
Definition at line 258 of file m2-typeprint.c.
References fprintf_filtered(), m2_print_type(), and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
|
static |
Definition at line 322 of file m2-typeprint.c.
References fprintf_filtered(), m2_print_bounds(), and TYPE_INDEX_TYPE.
Referenced by m2_print_type().
Definition at line 178 of file m2-typeprint.c.
References fputs_filtered(), and TYPE_NAME.
Referenced by m2_print_type(), and m2_procedure().
|
static |
Definition at line 210 of file m2-typeprint.c.
References fputs_filtered(), m2_print_type(), TYPE_NAME, and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
|
static |
Definition at line 518 of file m2-typeprint.c.
References fputs_filtered(), m2_is_unbounded_array(), m2_print_type(), TYPE_FIELD_TYPE, and TYPE_TARGET_TYPE.
Referenced by m2_print_type().
Definition at line 272 of file m2-typeprint.c.
References fprintf_filtered().
Referenced by m2_print_type().
|
static |
Definition at line 266 of file m2-typeprint.c.
References _, and fprintf_filtered().
Referenced by m2_print_type().