1999-04-16 01:35:26 +00:00
|
|
|
/* Modula 2 language support definitions for GDB, the GNU debugger.
|
2005-01-28 Andrew Cagney <cagney@gnu.org>
* language.h (struct language_defn): Make la_val_print's buffer
parameter a const bfd_byte.
* cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
* ada-lang.c (ada_aligned_value_addr)
(ada_value_primitive_packed_val, ada_which_variant_applies): Update.
* valprint.c (val_print_array_elements): Update.
* valprint.h (val_print_array_elements): Update.
* ada-lang.h (ada_val_print, ada_aligned_value_addr)
(ada_value_primitive_packed_val, ada_which_variant_applies): Update.
* ada-valprint.c (ada_val_print, struct ada_val_print_args)
(ada_val_print_1, ada_print_floating, printable_val_type)
(print_record, val_print_packed_array_elements)
(print_field_values, print_variant_part): Update.
* c-lang.h (c_val_print, cp_print_value_fields): Update.
* c-valprint.c (c_val_print): Update.
* f-lang.h (f_val_print): Update.
* f-valprint.c (f_val_print, f77_print_array_1)
(f77_print_array): Update.
* jv-lang.h (java_val_print): Update.
* jv-valprint.c (java_print_value_fields, java_val_print): Update.
* language.c (unk_lang_val_print): Update.
* m2-lang.h (m2_val_print): Update.
* m2-valprint.c (m2_val_print): Update.
* p-lang.h (pascal_val_print): Update.
(pascal_object_print_value_fields): Update.
* p-valprint.c (pascal_val_print)
(pascal_object_print_value_fields, pascal_object_print_value)
(pascal_object_print_value): Update.
* scm-lang.h (scm_val_print): Update.
* scm-valprint.c (scm_val_print): Update.
* value.h (val_print): Update.
2005-01-29 01:59:31 +00:00
|
|
|
|
2012-01-04 08:17:56 +00:00
|
|
|
Copyright (C) 1992, 1998, 2000, 2005, 2007-2012 Free Software
|
|
|
|
Foundation, Inc.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-08-23 18:08:50 +00:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
1999-07-07 20:19:36 +00:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-08-23 18:08:50 +00:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-05-28 01:12:42 +00:00
|
|
|
extern int m2_parse (void); /* Defined in m2-exp.y */
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-05-28 01:12:42 +00:00
|
|
|
extern void m2_error (char *); /* Defined in m2-exp.y */
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-02-02 00:21:19 +00:00
|
|
|
/* Defined in m2-typeprint.c */
|
2010-06-14 08:26:57 +00:00
|
|
|
extern void m2_print_type (struct type *, const char *, struct ui_file *, int,
|
2000-02-02 00:21:19 +00:00
|
|
|
int);
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2008-09-27 21:29:30 +00:00
|
|
|
extern void m2_print_typedef (struct type *, struct symbol *,
|
|
|
|
struct ui_file *);
|
|
|
|
|
2006-05-13 15:46:38 +00:00
|
|
|
extern int m2_is_long_set (struct type *type);
|
2007-10-16 17:36:51 +00:00
|
|
|
extern int m2_is_unbounded_array (struct type *type);
|
2006-05-13 15:46:38 +00:00
|
|
|
|
2012-03-01 19:26:13 +00:00
|
|
|
extern void m2_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
|
|
|
|
struct ui_file *, int,
|
|
|
|
const struct value *,
|
|
|
|
const struct value_print_options *);
|
2006-05-13 15:46:38 +00:00
|
|
|
|
|
|
|
extern int get_long_set_bounds (struct type *type, LONGEST *low,
|
|
|
|
LONGEST *high);
|
* gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
builtin_type_int, builtin_type_long, builtin_type_signed_char,
builtin_type_unsigned_char, builtin_type_unsigned_short,
builtin_type_unsigned_int, builtin_type_unsigned_long,
builtin_type_float, builtin_type_double, builtin_type_long_double,
builtin_type_complex, builtin_type_double_complex, builtin_type_string,
builtin_type_bool, builtin_type_long_long,
builtin_type_unsigned_long_long): Remove macros.
(builtin_type_f_character, builtin_type_f_integer,
builtin_type_f_integer_s2, builtin_type_f_logical,
builtin_type_f_logical_s1, builtin_type_f_logical_s2,
builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
builtin_type_f_complex_s8, builtin_type_f_complex_s16,
builtin_type_f_complex_s32): Likewise.
(builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
builtin_type_m2_real, builtin_type_m2_bool): Likewise.
(struct builtin_f_type, builtin_f_type): Move to f-lang.h.
(struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
* f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
* m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2008-09-11 14:31:43 +00:00
|
|
|
|
|
|
|
/* Modula-2 types */
|
|
|
|
|
|
|
|
struct builtin_m2_type
|
|
|
|
{
|
|
|
|
struct type *builtin_char;
|
|
|
|
struct type *builtin_int;
|
|
|
|
struct type *builtin_card;
|
|
|
|
struct type *builtin_real;
|
|
|
|
struct type *builtin_bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Return the Modula-2 type table for the specified architecture. */
|
|
|
|
extern const struct builtin_m2_type *builtin_m2_type (struct gdbarch *gdbarch);
|
|
|
|
|