From 049f10d7dc48a42b664a15149f83d5c3db004ef7 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 5 May 1999 14:45:51 +0000 Subject: import gdb-19990504 snapshot --- gdb/coffread.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gdb/coffread.c') diff --git a/gdb/coffread.c b/gdb/coffread.c index 9c8f4754057..56c1438b239 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); -- cgit v1.2.1