GDB (xrefs)
Enumerations | Functions | Variables
/tmp/gdb-7.10/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

void _initialize_m2_language (void)
 
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)
 

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

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 312 of file m2-lang.c.

Function Documentation

void _initialize_m2_language ( void  )

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

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

static void* build_m2_types ( struct gdbarch gdbarch)
static
const struct builtin_m2_type* builtin_m2_type ( struct gdbarch gdbarch)

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

References gdbarch_data().

Referenced by build_m2_types(), and m2_language_arch_info().

static struct value* evaluate_subexp_modula2 ( struct type expect_type,
struct expression exp,
int pos,
enum noside  noside 
)
static
static void m2_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter 
)
static

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

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

static void m2_language_arch_info ( struct gdbarch gdbarch,
struct language_arch_info lai 
)
static
static void m2_printchar ( int  c,
struct type type,
struct ui_file stream 
)
static

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

References fputs_filtered(), and LA_EMIT_CHAR.

Referenced by 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

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

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

const struct language_defn m2_language_defn

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

const struct op_print m2_op_print_tab[]
static

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

struct gdbarch_data* m2_type_data
static

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