diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-02 14:27:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-02 14:27:27 +0000 |
commit | f77b29db52f6254670c9c31ed6a4c04ab94fcd0e (patch) | |
tree | 1645924ffe3096f536f1560b3f598c399475c272 /gdb/expprint.c | |
parent | 8fb837d090f3606754ec747e98454d4d0228a6d1 (diff) | |
download | gdb-f77b29db52f6254670c9c31ed6a4c04ab94fcd0e.tar.gz |
2003-01-02 Andrew Cagney <ac131313@redhat.com>
* valarith.c (value_binop): Delete obsolete code and comments.
* configure.host: Ditto.
* buildsym.h (make_blockvector): Ditto.
* buildsym.c (make_blockvector): Ditto.
* defs.h (enum language): Ditto.
(chill_demangle): Ditto.
* elfread.c (elf_symtab_read): Ditto.
* dwarfread.c (CHILL_PRODUCER): Ditto.
(set_cu_language): Ditto.
(handle_producer): Ditto.
* expprint.c (print_subexp): Ditto.
* gdbtypes.c (chill_varying_type): Ditto.
* gdbtypes.h (builtin_type_chill_bool): Ditto.
(builtin_type_chill_char, builtin_type_chill_long): Ditto.
(builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
(chill_varying_type): Ditto.
* language.h (_LANG_chill): Ditto.
* language.c (binop_result_type, integral_type): Ditto.
(character_type, string_type, structured_type): Ditto.
(lang_bool_type, binop_type_check): Ditto.
* stabsread.h (os9k_stabs): Ditto.
* stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
(define_symbol, read_type, read_struct_fields): Ditto.
(read_array_type, read_enum_type, read_huge_number): Ditto.
(read_range_type, start_stabs): Ditto.
* symfile.c (init_filename_language_table): Ditto.
(add_psymbol_with_dem_name_to_list): Ditto.
* symtab.c (symbol_init_language_specific): Ditto.
(symbol_init_demangled_name, symbol_demangled_name): Ditto.
* symtab.h (struct general_symbol_info): Ditto.
(SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
* typeprint.c (typedef_print): Ditto.
* utils.c (fprintf_symbol_filtered): Ditto.
* valops.c (value_cast, search_struct_field, value_slice): Delete
obsolete code.
(varying_to_slice): Delete function.
* value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
(varying_to_slice): Delete declaration.
* MAINTAINERS: Update.
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r-- | gdb/expprint.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c index ed9d50ddf54..b4fec74bd06 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -267,8 +267,6 @@ print_subexp (register struct expression *exp, register int *pos, } else { - /* OBSOLETE int is_chill = exp->language_defn->la_language == language_chill; */ - /* OBSOLETE fputs_filtered (is_chill ? " [" : " {", stream); */ fputs_filtered (" {", stream); for (tem = 0; tem < nargs; tem++) { @@ -278,7 +276,6 @@ print_subexp (register struct expression *exp, register int *pos, } print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); } - /* OBSOLETE fputs_filtered (is_chill ? "]" : "}", stream); */ fputs_filtered ("}", stream); } return; @@ -286,29 +283,15 @@ print_subexp (register struct expression *exp, register int *pos, case OP_LABELED: tem = longest_to_int (exp->elts[pc + 1].longconst); (*pos) += 3 + BYTES_TO_EXP_ELEM (tem + 1); - -#if 0 - if (0 /* OBSOLETE exp->language_defn->la_language == language_chill */) - { /* OBSOLETE */ - fputs_filtered (".", stream); /* OBSOLETE */ - fputs_filtered (&exp->elts[pc + 2].string, stream); /* OBSOLETE */ - fputs_filtered (exp->elts[*pos].opcode == OP_LABELED ? ", " /* OBSOLETE */ - : ": ", /* OBSOLETE */ - stream); /* OBSOLETE */ - } /* OBSOLETE */ - else /* OBSOLETE */ -#endif - { - /* Gcc support both these syntaxes. Unsure which is preferred. */ + /* Gcc support both these syntaxes. Unsure which is preferred. */ #if 1 - fputs_filtered (&exp->elts[pc + 2].string, stream); - fputs_filtered (": ", stream); + fputs_filtered (&exp->elts[pc + 2].string, stream); + fputs_filtered (": ", stream); #else - fputs_filtered (".", stream); - fputs_filtered (&exp->elts[pc + 2].string, stream); - fputs_filtered ("=", stream); + fputs_filtered (".", stream); + fputs_filtered (&exp->elts[pc + 2].string, stream); + fputs_filtered ("=", stream); #endif - } print_subexp (exp, pos, stream, PREC_SUFFIX); return; |