aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-02-12 18:54:50 +0000
committerPer Bothner <per@bothner.com>1995-02-12 18:54:50 +0000
commit7c606261da93584302aec93ead8bf328a978d9ab (patch)
tree07b2080d5320f545d1d4db4241e97d9429c2014e /gdb
parent5222ca60be5bf56265a53aad3df6303de53fd0af (diff)
downloadgdb-7c606261da93584302aec93ead8bf328a978d9ab.zip
gdb-7c606261da93584302aec93ead8bf328a978d9ab.tar.gz
gdb-7c606261da93584302aec93ead8bf328a978d9ab.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/mdebugread.c6
-rw-r--r--gdb/stabsread.c22
3 files changed, 7 insertions, 27 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f30f8ec..f3e0bfb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 8d6c27d..2d6eac1 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 3b7c8e1..be281bf 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)