diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-15 00:14:37 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-15 00:14:37 +0000 |
commit | 486b440e04ee758005b61095c3691a3e9be6c2a6 (patch) | |
tree | ae66fa718b29803fba0a0eb3cf5ea164d7ce92d5 /gdb/xcoffread.c | |
parent | a08317af9f9aed12440b307fabe05c91487635d7 (diff) | |
download | gdb-486b440e04ee758005b61095c3691a3e9be6c2a6.zip gdb-486b440e04ee758005b61095c3691a3e9be6c2a6.tar.gz gdb-486b440e04ee758005b61095c3691a3e9be6c2a6.tar.bz2 |
* xcoffread.c (record_include_{begin,end}): Change fatal to complain.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index a8f9e7c..a33ad99 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -404,12 +404,17 @@ static void record_include_begin (cs) struct coff_symbol *cs; { - /* In xcoff, we assume include files cannot be nested (not in .c files - of course, but in corresponding .s files.) */ - if (inclDepth) - fatal ("xcoff internal: pending include file exists."); + { + /* In xcoff, we assume include files cannot be nested (not in .c files + of course, but in corresponding .s files.). */ + /* 14 Apr 93: A user said he got this message, but said he'd deleted + the test case. I changed it from a fatal() to a complain() + and changed the wording. */ + struct complaint msg = {"Nested C_BINCL symbols", 0, 0}; + complain (&msg); + } ++inclDepth; /* allocate an include file, or make room for the new entry */ @@ -440,7 +445,10 @@ struct coff_symbol *cs; InclTable *pTbl; if (inclDepth == 0) - fatal ("xcoff internal: Mismatch C_BINCL/C_EINCL pair found."); + { + struct complaint msg = {"Mismatched C_BINCL/C_EINCL pair", 0, 0}; + complain (&msg); + } pTbl = &inclTable [inclIndx]; pTbl->end = cs->c_value; |