GDB (xrefs)
Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/m2-lang.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "varobj.h"
#include "m2-lang.h"
#include "c-lang.h"
#include "valprint.h"

Go to the source code of this file.

Enumerations

enum  m2_primitive_types {
  m2_primitive_type_char, m2_primitive_type_int, m2_primitive_type_card, m2_primitive_type_real,
  m2_primitive_type_bool, nr_m2_primitive_types
}
 

Functions

static void m2_printchar (int, struct type *, struct ui_file *)
 
static void m2_emit_char (int, struct type *, struct ui_file *, int)
 
static void m2_printstr (struct ui_file *stream, struct type *type, const gdb_byte *string, unsigned int length, const char *encoding, int force_ellipses, const struct value_print_options *options)
 
static struct valueevaluate_subexp_modula2 (struct type *expect_type, struct expression *exp, int *pos, enum noside noside)
 
static void m2_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai)
 
static void * build_m2_types (struct gdbarch *gdbarch)
 
const struct builtin_m2_typebuiltin_m2_type (struct gdbarch *gdbarch)
 
void _initialize_m2_language (void)
 

Variables

static const struct op_print m2_op_print_tab []
 
const struct exp_descriptor exp_descriptor_modula2
 
const struct language_defn m2_language_defn
 
static struct gdbarch_datam2_type_data
 

Enumeration Type Documentation

◆ m2_primitive_types

Enumerator
m2_primitive_type_char 
m2_primitive_type_int 
m2_primitive_type_card 
m2_primitive_type_real 
m2_primitive_type_bool 
nr_m2_primitive_types 

Definition at line 311 of file m2-lang.c.

Function Documentation

◆ _initialize_m2_language()

void _initialize_m2_language ( void  )

Definition at line 439 of file m2-lang.c.

References build_m2_types(), gdbarch_data_register_post_init(), and m2_type_data.

◆ build_m2_types()

static void* build_m2_types ( struct gdbarch gdbarch)
static

◆ builtin_m2_type()

const struct builtin_m2_type* builtin_m2_type ( struct gdbarch gdbarch)

Definition at line 430 of file m2-lang.c.

References gdbarch_data(), and m2_type_data.

Referenced by build_m2_types(), and m2_language_arch_info().

◆ evaluate_subexp_modula2()

static struct value* evaluate_subexp_modula2 ( struct type expect_type,
struct expression exp,
int *  pos,
enum noside  noside 
)
static

◆ m2_emit_char()

static void m2_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter 
)
static

Definition at line 41 of file m2-lang.c.

References fprintf_filtered(), fputs_filtered(), and PRINT_LITERAL_FORM.

◆ m2_language_arch_info()

static void m2_language_arch_info ( struct gdbarch gdbarch,
struct language_arch_info lai 
)
static

◆ m2_printchar()

static void m2_printchar ( int  c,
struct type type,
struct ui_file stream 
)
static

Definition at line 90 of file m2-lang.c.

References fputs_filtered(), and LA_EMIT_CHAR.

Referenced by m2_printstr().

◆ m2_printstr()

static void m2_printstr ( struct ui_file stream,
struct type type,
const gdb_byte string,
unsigned int  length,
const char *  encoding,
int  force_ellipses,
const struct value_print_options options 
)
static

Variable Documentation

◆ exp_descriptor_modula2

const struct exp_descriptor exp_descriptor_modula2
Initial value:
=
{
}
int operator_check_standard(struct expression *exp, int pos, int(*objfile_func)(struct objfile *objfile, void *data), void *data)
Definition: parse.c:1723
int dump_subexp_body_standard(struct expression *exp, struct ui_file *stream, int elt)
Definition: expprint.c:795
static struct value * evaluate_subexp_modula2(struct type *expect_type, struct expression *exp, int *pos, enum noside noside)
Definition: m2-lang.c:178
void print_subexp_standard(struct expression *exp, int *pos, struct ui_file *stream, enum precedence prec)
Definition: expprint.c:58
void operator_length_standard(const struct expression *expr, int endpos, int *oplenp, int *argsp)
Definition: parse.c:837
const char * op_name_standard(enum exp_opcode opcode)
Definition: expprint.c:695

Definition at line 346 of file m2-lang.c.

◆ m2_language_defn

const struct language_defn m2_language_defn

◆ m2_op_print_tab

const struct op_print m2_op_print_tab[]
static

Definition at line 275 of file m2-lang.c.

◆ m2_type_data

struct gdbarch_data* m2_type_data
static

Definition at line 427 of file m2-lang.c.

Referenced by _initialize_m2_language(), and builtin_m2_type().