diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-05-05 14:45:51 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-05-05 14:45:51 +0000 |
commit | b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98 (patch) | |
tree | c59a94fbe917e0839329b872139198c2a7a05ab1 /gdb/coffread.c | |
parent | e1346c8d0969dad58ddc13c9c741cb0f4e6345a5 (diff) | |
download | gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.zip gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.tar.gz gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.tar.bz2 |
import gdb-19990504 snapshot
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 9c8f475..56c1438 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -686,6 +686,17 @@ coff_symfile_read (objfile, section_offsets, mainline) if (info->stabsects) { + if (! info->stabstrsect) + { + error_begin (); + fprintf_filtered + (gdb_stderr, + ("The debugging information in `%s' is corrupted.\n" + "The file has a `.stabs' section, but no `.stabstr' section.\n"), + name); + return_to_top_level (RETURN_ERROR); + } + /* FIXME: dubious. Why can't we use something normal like bfd_get_section_contents? */ bfd_seek (abfd, abfd->where, 0); |