aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-10 03:57:57 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-10 03:57:57 +0000
commitfddb9bda704b4be0ba725770f62adb9f6397612d (patch)
tree85d3dbd78f788ad6bf80a65e6b594c230f9c7156 /gdb/stabsread.c
parent594eeceb8efe6abcf5820d1e62eb5aa21d21a997 (diff)
downloadgdb-fddb9bda704b4be0ba725770f62adb9f6397612d.zip
gdb-fddb9bda704b4be0ba725770f62adb9f6397612d.tar.gz
gdb-fddb9bda704b4be0ba725770f62adb9f6397612d.tar.bz2
* stabsread.c (common_block_end, fix_common_block): Stash the
struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so as to not assume that a pointer fits in an enum.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 8e7aec4..4a6ccda 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3576,7 +3576,7 @@ common_block_end (objfile)
for (j = common_block_i; j < common_block->nsyms; j++)
add_symbol_to_list (common_block->symbol[j], &new);
- SYMBOL_NAMESPACE (sym) = (enum namespace)((long) new);
+ SYMBOL_TYPE (sym) = (struct type *) new;
/* Should we be putting local_symbols back to what it was?
Does it matter? */
@@ -3596,7 +3596,7 @@ fix_common_block (sym, valu)
struct symbol *sym;
int valu;
{
- struct pending *next = (struct pending *) SYMBOL_NAMESPACE (sym);
+ struct pending *next = (struct pending *) SYMBOL_TYPE (sym);
for ( ; next; next = next->next)
{
register int j;