GDB (xrefs)
|
#include "defs.h"
#include "language.h"
#include "gdbsupport/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 "demangle.h"
#include "c-lang.h"
#include "typeprint.h"
#include "cp-abi.h"
#include "cli/cli-style.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) |
static bool | m2_get_discrete_bounds (struct type *type, LONGEST *lowp, LONGEST *highp) |
|
static |
Definition at line 225 of file m2-typeprint.c.
References type::bounds(), flags, gdb_printf(), gdb_puts(), range_bounds::high, type::index_type(), dynamic_prop::is_constant(), type::length(), m2_print_bounds(), m2_print_type(), and type::target_type().
Referenced by m2_print_type().
Definition at line 590 of file m2-typeprint.c.
References type::field(), fputs_styled(), gdb_printf(), field::loc_enumval(), field::name(), type::name(), type::num_fields(), QUIT, cli_style_option::style(), variable_name_style, and ui_file::wrap_here().
Referenced by m2_print_type().
|
static |
Definition at line 377 of file m2-typeprint.c.
References check_typedef(), type::code(), get_discrete_bounds(), type::is_unsigned(), and type::length().
Referenced by m2_is_long_set_of_type().
int m2_is_long_set | ( | struct type * | type | ) |
Definition at line 338 of file m2-typeprint.c.
References type::code(), type::field(), type::index_type(), field::name(), type::num_fields(), range, field::type(), and TYPE_N_BASECLASSES.
Referenced by m2_long_set(), and m2_language::value_print_inner().
Definition at line 403 of file m2-typeprint.c.
References type::bounds(), type::code(), dynamic_prop::const_val(), type::field(), range_bounds::high, type::index_type(), range_bounds::low, m2_get_discrete_bounds(), type::num_fields(), range, field::type(), and TYPE_N_BASECLASSES.
Referenced by m2_long_set().
int m2_is_unbounded_array | ( | struct type * | type | ) |
Definition at line 484 of file m2-typeprint.c.
References type::code(), type::field(), field::name(), type::num_fields(), and field::type().
Referenced by eval_op_m2_high(), eval_op_m2_subscript(), m2_unbounded_array(), and m2_language::value_print_inner().
|
static |
Definition at line 433 of file m2-typeprint.c.
References type::field(), flags, gdb_printf(), gdb_puts(), get_long_set_bounds(), type::index_type(), m2_is_long_set(), m2_is_long_set_of_type(), m2_print_bounds(), m2_print_type(), type::name(), type::num_fields(), field::type(), and TYPE_N_BASECLASSES.
Referenced by m2_print_type().
|
static |
Definition at line 248 of file m2-typeprint.c.
References flags, gdb_printf(), m2_print_type(), type::target_type(), and TYPE_CONST.
Referenced by m2_print_type().
|
static |
Definition at line 309 of file m2-typeprint.c.
References type::bounds(), dynamic_prop::const_val(), range_bounds::high, range_bounds::low, type::num_fields(), print_type_scalar(), 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 74 of file m2-typeprint.c.
References check_typedef(), type::code(), flags, fputs_styled(), 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(), metadata_style, QUIT, cli_style_option::style(), TYPE_CODE_UNDEF, and ui_file::wrap_here().
Referenced by m2_array(), m2_long_set(), m2_pointer(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_typedef(), m2_unbounded_array(), and m2_language::print_type().
|
static |
Definition at line 280 of file m2-typeprint.c.
References type::code(), type::field(), flags, gdb_printf(), gdb_puts(), m2_print_type(), m2_type_name(), type::num_fields(), type::target_type(), field::type(), type_print_unknown_return_type(), and ui_file::wrap_here().
Referenced by m2_print_type().
|
static |
Definition at line 189 of file m2-typeprint.c.
References type::bounds(), dynamic_prop::const_val(), flags, gdb_printf(), range_bounds::high, range_bounds::low, m2_print_type(), print_type_scalar(), and type::target_type().
Referenced by m2_print_type().
|
static |
Definition at line 530 of file m2-typeprint.c.
References field::bitsize(), type::code(), type::field(), flags, fputs_styled(), gdb_printf(), gdb_puts(), field::is_packed(), m2_print_type(), field::name(), type::name(), type::num_fields(), print_spaces(), QUIT, cli_style_option::style(), field::type(), TYPE_N_BASECLASSES, variable_name_style, and ui_file::wrap_here().
Referenced by m2_print_type().
|
static |
Definition at line 260 of file m2-typeprint.c.
References flags, gdb_printf(), m2_print_type(), and type::target_type().
Referenced by m2_print_type().
|
static |
Definition at line 325 of file m2-typeprint.c.
References gdb_printf(), type::index_type(), and m2_print_bounds().
Referenced by m2_print_type().
Definition at line 180 of file m2-typeprint.c.
References gdb_puts(), and type::name().
Referenced by m2_print_type(), and m2_procedure().
|
static |
Definition at line 212 of file m2-typeprint.c.
References flags, gdb_puts(), m2_print_type(), type::name(), and type::target_type().
Referenced by m2_print_type().
|
static |
Definition at line 513 of file m2-typeprint.c.
References type::field(), flags, gdb_puts(), m2_is_unbounded_array(), m2_print_type(), type::target_type(), and field::type().
Referenced by m2_print_type().
Definition at line 274 of file m2-typeprint.c.
References gdb_printf().
Referenced by m2_print_type().
|
static |
Definition at line 268 of file m2-typeprint.c.
References gdb_printf().
Referenced by m2_print_type().