GDB (xrefs)

Classes | Functions
/tmp/gdb-8.1/gdb/m2-lang.h File Reference

Go to the source code of this file.

## Classes
struct | builtin_m2_type

## Functions
int | m2_parse (struct parser_state *)
void | m2_yyerror (const char *)
void | m2_print_type (struct type *, const char *, struct ui_file *, int, int, const struct type_print_options *)
void | m2_print_typedef (struct type *, struct symbol *, struct ui_file *)
int | m2_is_long_set (struct type *type)
int | m2_is_unbounded_array (struct type *type)
void | m2_val_print (struct type *, int, CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *)
int | get_long_set_bounds (struct type *type, LONGEST *low, LONGEST *high)
const struct builtin_m2_type * | builtin_m2_type (struct gdbarch *gdbarch)

## Function Documentation

## ◆ 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().

## ◆ get_long_set_bounds()

int get_long_set_bounds | ( | struct type * | type,
|  | LONGEST * | low,
|  | LONGEST * | high
| ) |  |

Definition at line 49 of file m2-valprint.c.

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

## ◆ 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_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_parse()

int m2_parse | ( | struct parser_state * |  | ) |

Definition at line 2842 of file m2-exp.c.

References gdb_assert, make_scoped_restore(), pstate, and yyparse().

## ◆ m2_print_type()

void m2_print_type | ( | struct type * | ,
|  | const char * | ,
|  | struct ui_file * | ,
|  | int | ,
|  | int | ,
|  | const struct type_print_options * |
| ) |  |

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 * | ,
|  | struct symbol * | ,
|  | struct ui_file * |
| ) |  |

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_val_print()

void m2_val_print | ( | struct type * | ,
|  | int | ,
|  | CORE_ADDR | ,
|  | struct ui_file * | ,
|  | int | ,
|  | struct value * | ,
|  | const struct value_print_options * |
| ) |  |

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

References _, check_typedef(), cp_print_value_fields(), current_language, value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_flush(), generic_val_print(), get_discrete_bounds(), language_defn::la_language, LA_PRINT_STRING, language_m2, m2_decorations, m2_is_long_set(), m2_is_unbounded_array(), m2_print_long_set(), m2_print_unbounded_array(), value_print_options::prettyformat_arrays, print_spaces_filtered(), print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), value_print_options::stop_print_at_null, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_CONST, TYPE_INDEX_TYPE, TYPE_LENGTH, TYPE_STUB, TYPE_TARGET_TYPE, value_print_options::unionprint, unpack_pointer(), val_print_array_elements(), val_print_scalar_formatted(), value_bit_index(), and value_contents_for_printing().

## ◆ m2_yyerror()

void m2_yyerror | ( | const char * |  | ) |