]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 29 Jun 1993 15:25:27 +0000 (15:25 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 29 Jun 1993 15:25:27 +0000 (15:25 +0000)
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.

gdb/ChangeLog
gdb/c-typeprint.c

index 18d787988c23f70cd03d63040d86bda552d8bc31..457935bbdda5e71802e01462049f0c05375d906d 100644 (file)
@@ -1,5 +1,10 @@
 Tue Jun 29 09:11:27 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * 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.
+
        * symtab.h (struct symtab, line_charpos): Fix comment.
        * source.c (identify_source_line): Fix off by one bug with line.
 
index bf875114fd8e80a0e4c0330b1362c649b7176686..cf108d26005c31dbc75243c8b8d06f68df9a425b 100644 (file)
@@ -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;
     }