Improve handling of variables for decomp parser (#376)

* Parser refactor:
- Handling LIRBARY and STRING markers
- Extracting global variable name for future comparison
- Marking function static variables
- More fluent error messages

* String constants annotated with STRING

* fix variable name

* Should compare LIBRARY markers
This commit is contained in:
MS
2023-12-27 15:59:42 -05:00
committed by GitHub
parent dfad323880
commit bcb7bec68b
160 changed files with 586 additions and 327 deletions

View File

@@ -316,7 +316,7 @@ def main():
parser.read_lines(srcfile)
for fun in parser.functions:
if fun.is_stub:
if fun.should_skip():
continue
if fun.module != basename:
@@ -330,7 +330,7 @@ def main():
else:
continue
if fun.lookup_by_name:
if fun.is_nameref():
recinfo = syminfo.get_recompiled_address_from_name(fun.name)
if not recinfo:
continue