Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15595
Change subject: arch: Provide traceback when parsing ISA code
......................................................................
arch: Provide traceback when parsing ISA code
There is no line information When the ISA code is executed inside the
isa_parser environment and an error is encountered. The build stops and
reports the line of the let block containing the error.
This patch is enhacing the error reporting by printing the traceback of
the faulting ISA code.
Change-Id: I3acd17f0d78b2feb8fe6e48808a094c5b81624e6
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/arch/isa_parser.py
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py
index 9ac7612..bd46216 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -1939,6 +1939,7 @@
try:
exec split_setup+fixPythonIndentation(t[2]) in
self.exportContext
except Exception, exc:
+ traceback.print_exc(file=sys.stdout)
if debug:
raise
error(t.lineno(1), 'In global let block: %s' % exc)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/15595
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I3acd17f0d78b2feb8fe6e48808a094c5b81624e6
Gerrit-Change-Number: 15595
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev