diff options
| author | Aetias <aetias@outlook.com> | 2024-04-07 15:04:51 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-07 15:04:51 +0200 |
| commit | 392ccb357e8b9bf5d12eae74577b5778bff7c9cd (patch) | |
| tree | 0ffad327db6bd3395529636681393af469a35cf2 /tools/mangle.py | |
| parent | c628010c04d156d3795a6b998c5dccce608e664d (diff) | |
Mangle `ActorRupee` actor type and resource
Diffstat (limited to 'tools/mangle.py')
| -rw-r--r-- | tools/mangle.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tools/mangle.py b/tools/mangle.py index 1bdecbdc..fc2c5826 100644 --- a/tools/mangle.py +++ b/tools/mangle.py @@ -40,6 +40,20 @@ output = output.decode() # print(output) -mangled_names: list[str] = re.findall(r'.text +(_Z\S+)', output) -for name in mangled_names: - print(name) +mangled_funcs: list[str] = re.findall(r'.text +(_Z\S+)', output) +mangled_data: list[str] = re.findall(r'(?:.data|.bss) +(_Z\S+)', output) + +if len(mangled_funcs) > 0: + print('Functions:') + print() + for func in mangled_funcs: + print(func) + print() + print() +if len(mangled_data) > 0: + print('Data:') + print() + for data in mangled_data: + print(data) + print() + print() |
