From 7c606261da93584302aec93ead8bf328a978d9ab Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sun, 12 Feb 1995 18:54:50 +0000 Subject: [PATCH] * symtab.c (add_param_to_type): Remove (commented-out) function, since that functionality has been re-written. * coffread.c: Remove commented-out add_param_to_type support. * mdebugread.c (parse_symbol): Likewise. * stabsread.c (define_symbol): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/mdebugread.c | 6 ------ gdb/stabsread.c | 22 +--------------------- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f30f8ec3032..f3e0bfb9af8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -28,6 +28,12 @@ Sun Feb 12 10:02:16 1995 Per Bothner * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF. + * symtab.c (add_param_to_type): Remove (commented-out) function, + since that functionality has been re-written. + * coffread.c: Remove commented-out add_param_to_type support. + * mdebugread.c (parse_symbol): Likewise. + * stabsread.c (define_symbol): Likewise. + Sun Feb 12 09:03:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com) * buildsym.c (start_subfile): Set language for f2c like for cfront. diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 8d6c27dad96..2d6eac16a2b 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -786,12 +786,6 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets) SYMBOL_VALUE (s) = svalue; SYMBOL_TYPE (s) = parse_type (cur_fd, ax, sh->index, 0, bigend, name); add_symbol (s, top_stack->cur_block); -#if 0 - /* FIXME: This has not been tested. See dbxread.c */ - /* Add the type of this parameter to the function/procedure - type of this block. */ - add_param_to_type (&top_stack->cur_block->function->type, s); -#endif break; case stLabel: /* label, goes into current block */ diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 3b7c8e1256f..be281bff20b 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -777,23 +777,7 @@ define_symbol (valu, string, desc, type, objfile) We need to convert this to the function-returning-type-X type in GDB. E.g. "int" is converted to "function returning int". */ if (TYPE_CODE (SYMBOL_TYPE (sym)) != TYPE_CODE_FUNC) - { -#if 0 - /* This code doesn't work -- it needs to realloc and can't. */ - /* Attempt to set up to record a function prototype... */ - struct type *new = alloc_type (objfile); - - /* Generate a template for the type of this function. The - types of the arguments will be added as we read the symbol - table. */ - *new = *lookup_function_type (SYMBOL_TYPE(sym)); - SYMBOL_TYPE(sym) = new; - TYPE_OBJFILE (new) = objfile; - in_function_type = new; -#else - SYMBOL_TYPE (sym) = lookup_function_type (SYMBOL_TYPE (sym)); -#endif - } + SYMBOL_TYPE (sym) = lookup_function_type (SYMBOL_TYPE (sym)); /* fall into process_prototype_types */ process_prototype_types: @@ -864,10 +848,6 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_CLASS (sym) = DBX_PARM_SYMBOL_CLASS (type); SYMBOL_VALUE (sym) = valu; SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE; -#if 0 - /* This doesn't work yet. */ - add_param_to_type (&in_function_type, sym); -#endif add_symbol_to_list (sym, &local_symbols); if (TARGET_BYTE_ORDER != BIG_ENDIAN) -- 2.30.2