GDB (xrefs)

Functions
/tmp/gdb-8.1/gdb/m2-typeprint.c File Reference
`#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)

## Function Documentation

## ◆ m2_array()

static void m2_array | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 223 of file m2-typeprint.c.

References flags, 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().

## ◆ m2_enum()

void m2_enum | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level
| ) |  |
| static

Definition at line 596 of file m2-typeprint.c.

References fprintf_filtered(), fputs_filtered(), plongest(), QUIT, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_NFIELDS, TYPE_TAG_NAME, and wrap_here().

Referenced by m2_print_type().

## ◆ m2_get_discrete_bounds()

static int m2_get_discrete_bounds | ( | struct type * | type,
|  | LONGEST * | lowp,
|  | LONGEST * | highp
| ) |  |
| static

Definition at line 375 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().

## ◆ m2_is_long_set()

int m2_is_long_set | ( | struct type * | type | ) |

Definition at line 336 of file m2-typeprint.c.

References 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().

## ◆ m2_is_long_set_of_type()

int m2_is_long_set_of_type | ( | struct type * | type,
|  | struct type ** | of_type
| ) |  |

Definition at line 401 of file m2-typeprint.c.

References _, error(), 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().

## ◆ m2_is_unbounded_array()

int m2_is_unbounded_array | ( | struct type * | type | ) |

Definition at line 490 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().

## ◆ m2_long_set()

static int m2_long_set | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 431 of file m2-typeprint.c.

References _, flags, fprintf_filtered(), fputs_filtered(), get_long_set_bounds(), 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().

## ◆ m2_pointer()

static void m2_pointer | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 246 of file m2-typeprint.c.

References flags, fprintf_filtered(), m2_print_type(), TYPE_CONST, and TYPE_TARGET_TYPE.

Referenced by m2_print_type().

## ◆ m2_print_bounds()

static void m2_print_bounds | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | int | print_high
| ) |  |
| static

Definition at line 307 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().

## ◆ m2_print_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
| ) |  |

Definition at line 72 of file m2-typeprint.c.

References _, check_typedef(), flags, 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().

## ◆ m2_print_typedef()

void m2_print_typedef | ( | struct type * | type,
|  | struct symbol * | new_symbol,
|  | struct ui_file * | stream
| ) |  |

Definition at line 160 of file m2-typeprint.c.

References check_typedef(), fprintf_filtered(), new_symbol(), SYMBOL_LINKAGE_NAME, SYMBOL_PRINT_NAME, SYMBOL_TYPE, TYPE_NAME, and type_print().

## ◆ m2_procedure()

static void m2_procedure | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 278 of file m2-typeprint.c.

References flags, fprintf_filtered(), fputs_filtered(), m2_print_type(), m2_type_name(), TYPE_CODE, TYPE_CODE_VOID, TYPE_FIELD_TYPE, TYPE_NFIELDS, type_print_unknown_return_type(), TYPE_TARGET_TYPE, and wrap_here().

Referenced by m2_print_type().

## ◆ m2_range()

void m2_range | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 187 of file m2-typeprint.c.

References flags, fprintf_filtered(), m2_print_type(), print_type_scalar(), TYPE_HIGH_BOUND, TYPE_LOW_BOUND, and TYPE_TARGET_TYPE.

Referenced by m2_print_type().

## ◆ m2_record_fields()

void m2_record_fields | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 536 of file m2-typeprint.c.

References _, flags, fprintf_filtered(), fprintfi_filtered(), fputs_filtered(), 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().

## ◆ m2_ref()

static void m2_ref | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 258 of file m2-typeprint.c.

References flags, fprintf_filtered(), m2_print_type(), and TYPE_TARGET_TYPE.

Referenced by m2_print_type().

## ◆ m2_short_set()

static void m2_short_set | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level
| ) |  |
| static

Definition at line 323 of file m2-typeprint.c.

References fprintf_filtered(), m2_print_bounds(), and TYPE_INDEX_TYPE.

Referenced by m2_print_type().

## ◆ m2_type_name()

void m2_type_name | ( | struct type * | type,
|  | struct ui_file * | stream
| ) |  |
| static

Definition at line 178 of file m2-typeprint.c.

References fputs_filtered(), and TYPE_NAME.

Referenced by m2_print_type(), and m2_procedure().

## ◆ m2_typedef()

static void m2_typedef | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 210 of file m2-typeprint.c.

References flags, fputs_filtered(), m2_print_type(), TYPE_NAME, and TYPE_TARGET_TYPE.

Referenced by m2_print_type().

## ◆ m2_unbounded_array()

static int m2_unbounded_array | ( | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level,
|  | const struct type_print_options * | flags
| ) |  |
| static

Definition at line 519 of file m2-typeprint.c.

References flags, fputs_filtered(), m2_is_unbounded_array(), m2_print_type(), TYPE_FIELD_TYPE, and TYPE_TARGET_TYPE.

Referenced by m2_print_type().

## ◆ m2_union()

static void m2_union | ( | struct type * | type,
|  | struct ui_file * | stream
| ) |  |
| static

Definition at line 272 of file m2-typeprint.c.

References fprintf_filtered().

Referenced by m2_print_type().

## ◆ m2_unknown()

static void m2_unknown | ( | const char * | s,
|  | struct type * | type,
|  | struct ui_file * | stream,
|  | int | show,
|  | int | level
| ) |  |
| static

Definition at line 266 of file m2-typeprint.c.

References _, and fprintf_filtered().

Referenced by m2_print_type().