GDB (xrefs)
Loading...
Searching...
No Matches
Functions
m2-typeprint.c File Reference
#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)
 

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

◆ m2_enum()

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

◆ m2_get_discrete_bounds()

static bool m2_get_discrete_bounds ( struct type * type,
LONGEST * lowp,
LONGEST * highp )
static

◆ m2_is_long_set()

int m2_is_long_set ( struct type * type)

◆ m2_is_long_set_of_type()

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

◆ m2_is_unbounded_array()

int m2_is_unbounded_array ( struct type * type)

◆ 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

◆ 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 248 of file m2-typeprint.c.

References flags, gdb_printf(), m2_print_type(), type::target_type(), and TYPE_CONST.

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

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

◆ m2_procedure()

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

◆ m2_range()

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

◆ 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

◆ 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 260 of file m2-typeprint.c.

References flags, gdb_printf(), 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 325 of file m2-typeprint.c.

References gdb_printf(), type::index_type(), and m2_print_bounds().

Referenced by m2_print_type().

◆ m2_type_name()

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

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

References gdb_puts(), 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 212 of file m2-typeprint.c.

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

◆ m2_union()

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

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

References gdb_printf().

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 268 of file m2-typeprint.c.

References gdb_printf().

Referenced by m2_print_type().