aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-typeprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-29 15:25:27 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-29 15:25:27 +0000
commitfd09c96316bf1f5afce7d1bcf2a254a2c113a853 (patch)
treee0bd1d1fad5f6cc9385f5b3c3354f4b55198d236 /gdb/c-typeprint.c
parentd63aae7f321aaecc0739cde0b319d5adea7b35b3 (diff)
downloadgdb-fd09c96316bf1f5afce7d1bcf2a254a2c113a853.zip
gdb-fd09c96316bf1f5afce7d1bcf2a254a2c113a853.tar.gz
gdb-fd09c96316bf1f5afce7d1bcf2a254a2c113a853.tar.bz2
* dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
don't expect it, change it to LOC_STATIC so at least we don't coredump. * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r--gdb/c-typeprint.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index bf87511..cf108d2 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -805,7 +805,10 @@ c_type_print_base (type, stream, show, level)
}
else
{
- error ("Invalid type code (%d) in symbol table.", TYPE_CODE (type));
+ /* At least for dump_symtab, it is important that this not be
+ an error (). */
+ fprintf_filtered (stream, "<invalid type code %d>",
+ TYPE_CODE (type));
}
break;
}