X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fm2-lang.c;h=2a1e1661abcbe86893c29196ed088a988ab275ce;hb=d7f3ff3ea7830389f458be7c5eadb5d4a4e0a90b;hp=31e9a5629a1df308d0c71f72b36c74f68516e4aa;hpb=e93a877490b468a2894732ef1d36eba9019a6bb7;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index 31e9a5629a..2a1e1661ab 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -1,6 +1,6 @@ /* Modula 2 language support routines for GDB, the GNU debugger. - Copyright (C) 1992-2013 Free Software Foundation, Inc. + Copyright (C) 1992-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -23,6 +23,7 @@ #include "expression.h" #include "parser-defs.h" #include "language.h" +#include "varobj.h" #include "m2-lang.h" #include "c-lang.h" #include "valprint.h" @@ -303,7 +304,7 @@ static const struct op_print m2_op_print_tab[] = {"MIN", UNOP_MIN, PREC_BUILTIN_FUNCTION, 0}, {"ODD", UNOP_ODD, PREC_BUILTIN_FUNCTION, 0}, {"TRUNC", UNOP_TRUNC, PREC_BUILTIN_FUNCTION, 0}, - {NULL, 0, 0, 0} + {NULL, OP_NULL, PREC_BUILTIN_FUNCTION, 0} }; /* The built-in types of Modula-2. */ @@ -356,6 +357,7 @@ const struct exp_descriptor exp_descriptor_modula2 = const struct language_defn m2_language_defn = { "modula-2", + "Modula-2", language_m2, range_check_on, case_sensitive_on, @@ -391,6 +393,9 @@ const struct language_defn m2_language_defn = default_get_string, NULL, /* la_get_symbol_name_cmp */ iterate_over_symbols, + &default_varobj_ops, + NULL, + NULL, LANG_MAGIC }; @@ -420,7 +425,7 @@ static struct gdbarch_data *m2_type_data; const struct builtin_m2_type * builtin_m2_type (struct gdbarch *gdbarch) { - return gdbarch_data (gdbarch, m2_type_data); + return (const struct builtin_m2_type *) gdbarch_data (gdbarch, m2_type_data); }