Index: defs.h =================================================================== RCS file: /cvs/src/src/gdb/defs.h,v retrieving revision 1.118 diff -c -3 -p -r1.118 defs.h *** defs.h 10 Apr 2003 02:18:40 -0000 1.118 --- defs.h 7 May 2003 01:23:11 -0000 *************** enum language *** 211,217 **** language_m2, /* Modula-2 */ language_asm, /* Assembly language */ language_scm, /* Scheme / Guile */ ! language_pascal /* Pascal */ }; enum precision_type --- 211,218 ---- language_m2, /* Modula-2 */ language_asm, /* Assembly language */ language_scm, /* Scheme / Guile */ ! language_pascal, /* Pascal */ ! language_unsupported /* All other (unsupported) languages */ }; enum precision_type Index: c-lang.c =================================================================== RCS file: /cvs/src/src/gdb/c-lang.c,v retrieving revision 1.18 diff -c -3 -p -r1.18 c-lang.c *** c-lang.c 2 Apr 2003 03:02:46 -0000 1.18 --- c-lang.c 7 May 2003 01:23:04 -0000 *************** const struct language_defn asm_language_ *** 651,660 **** --- 651,692 ---- LANG_MAGIC }; + const struct language_defn unsupported_language_defn = + { + "unsupported", /* Language name */ + language_unsupported, + c_builtin_types, + range_check_off, + type_check_off, + case_sensitive_on, + c_preprocess_and_parse, + c_error, + evaluate_subexp_standard, + c_printchar, /* Print a character constant */ + c_printstr, /* Function to print string constant */ + c_emit_char, /* Print a single char */ + c_create_fundamental_type, /* Create fundamental type in this language */ + c_print_type, /* Print a type using appropriate syntax */ + c_val_print, /* Print a value using appropriate syntax */ + c_value_print, /* Print a top-level value */ + NULL, /* Language specific skip_trampoline */ + NULL, /* Language specific symbol demangler */ + {"", "", "", ""}, /* Binary format info */ + {"0%lo", "0", "o", ""}, /* Octal format info */ + {"%ld", "", "d", ""}, /* Decimal format info */ + {"0x%lx", "0x", "x", ""}, /* Hex format info */ + c_op_print_tab, /* expression operators for printing */ + 1, /* c-style arrays */ + 0, /* String lower bound */ + &builtin_type_char, /* Type of string elements */ + LANG_MAGIC + }; + void _initialize_c_language (void) { add_language (&c_language_defn); add_language (&cplus_language_defn); add_language (&asm_language_defn); + add_language (&unsupported_language_defn); }