GDB (API)
|
00001 /* Modula 2 language support definitions for GDB, the GNU debugger. 00002 00003 Copyright (C) 1992-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 struct type_print_options; 00021 00022 extern int m2_parse (void); /* Defined in m2-exp.y */ 00023 00024 extern void m2_error (char *); /* Defined in m2-exp.y */ 00025 00026 /* Defined in m2-typeprint.c */ 00027 extern void m2_print_type (struct type *, const char *, struct ui_file *, int, 00028 int, const struct type_print_options *); 00029 00030 extern void m2_print_typedef (struct type *, struct symbol *, 00031 struct ui_file *); 00032 00033 extern int m2_is_long_set (struct type *type); 00034 extern int m2_is_unbounded_array (struct type *type); 00035 00036 extern void m2_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, 00037 struct ui_file *, int, 00038 const struct value *, 00039 const struct value_print_options *); 00040 00041 extern int get_long_set_bounds (struct type *type, LONGEST *low, 00042 LONGEST *high); 00043 00044 /* Modula-2 types */ 00045 00046 struct builtin_m2_type 00047 { 00048 struct type *builtin_char; 00049 struct type *builtin_int; 00050 struct type *builtin_card; 00051 struct type *builtin_real; 00052 struct type *builtin_bool; 00053 }; 00054 00055 /* Return the Modula-2 type table for the specified architecture. */ 00056 extern const struct builtin_m2_type *builtin_m2_type (struct gdbarch *gdbarch); 00057