diff options
author | Robert Moore <Robert.Moore@intel.com> | 2022-08-12 13:38:03 -0700 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2022-08-12 13:38:03 -0700 |
commit | b24642bac25d9760a2bf0d49bb4e3b14a491829a (patch) | |
tree | 116d7996c3709ca0676c507e152f40c043e880b9 | |
parent | 4d46a4e55f75d234fcf300dcd07feccd37cb379b (diff) | |
download | acpica-b24642bac25d9760a2bf0d49bb4e3b14a491829a.tar.gz |
iASL: Fix some error-reporting issues.
Some errors were not being reported on the console output.
-rw-r--r-- | source/compiler/aslcompile.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/compiler/aslcompile.c b/source/compiler/aslcompile.c index c17e219c1..62d0f76da 100644 --- a/source/compiler/aslcompile.c +++ b/source/compiler/aslcompile.c @@ -241,7 +241,7 @@ CmDoCompile ( if (AslGbl_SyntaxError) { - fprintf (stderr, + AslError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, "Compiler aborting due to parser-detected syntax error(s)\n"); /* Flag this error in the FileNode for compilation summary */ @@ -250,6 +250,8 @@ CmDoCompile ( FileNode->ParserErrorDetected = TRUE; AslGbl_ParserErrorDetected = TRUE; LsDumpParseTree (); + AePrintErrorLog(ASL_FILE_STDERR); + goto ErrorExit; } @@ -267,6 +269,8 @@ CmDoCompile ( goto ErrorExit; } + AePrintErrorLog(ASL_FILE_STDERR); + /* Flush out any remaining source after parse tree is complete */ Event = UtBeginEvent ("Flush source input"); @@ -283,10 +287,14 @@ CmDoCompile ( LsDumpParseTree (); + AslGbl_ParserErrorDetected = FALSE; + AslGbl_SyntaxError = FALSE; UtEndEvent (Event); UtEndEvent (FullCompile); return (AE_OK); + AslGbl_ParserErrorDetected = FALSE; + AslGbl_SyntaxError = FALSE; ErrorExit: UtEndEvent (FullCompile); return (AE_ERROR); @@ -919,7 +927,6 @@ CmCleanupAndExit ( ASL_MAX_ERROR_COUNT); } - AslGbl_ExceptionCount[ASL_ERROR] = 0; UtDisplaySummary (ASL_FILE_STDOUT); /* |