diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2015-10-06 17:26:50 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2015-10-06 17:26:50 -0700 |
commit | 90c279e4b1ddb87780b667ccec6bda64e6a77b96 (patch) | |
tree | 2c107a2b5db1a2764a1e853fd2401f449aaeb163 /src/sim/full_system.hh | |
parent | 2511490c9cf988797afb613040c256fc06b684e0 (diff) | |
download | gem5-90c279e4b1ddb87780b667ccec6bda64e6a77b96.tar.xz |
arch: clean up isa_parser error handling
Although some decent error messages were getting generated inside
isa_parser.py, they weren't always getting printed because of the
screwy way we were handling exceptions. (Basically an inner
exception would get hidden by an outer exception, and the more
informative inner error message would not get printed.)
Also line numbers were messed up, since they were taken from the
lexer, which is typically a token (or more) ahead of the grammar
rule that's being matched. Using the 'lineno' attribute that
PLY associates with the grammar production is more accurate.
The new LineTracker class extends lineno to track filenames as
well as line numbers.
Diffstat (limited to 'src/sim/full_system.hh')
0 files changed, 0 insertions, 0 deletions