mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 14:53:46 +08:00
* 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.
This commit is contained in:
parent
5222ca60be
commit
7c606261da
@ -28,6 +28,12 @@ Sun Feb 12 10:02:16 1995 Per Bothner <bothner@cygnus.com>
|
||||
|
||||
* 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.
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user