non-working squashfs driver updates, partial stack traces, and more

This commit is contained in:
Zoe
2023-11-24 03:58:30 -06:00
parent 1c865a6695
commit 525ae40054
24 changed files with 477 additions and 357 deletions

View File

@@ -0,0 +1,20 @@
import rustc_demangle.rustc_demangle as rustc_demangle
def demangle_function_name(mangled_name):
return rustc_demangle.demangle(mangled_name).get_fn_name(False)
if __name__ == "__main__":
with open("scripts/symbols.table", 'r') as infile:
lines = infile.readlines()
sorted_lines = sorted(lines, key=lambda line: int(line.split()[0], 16) if len(line.split()) >= 1 else 0)
with open("scripts/symbols.table", 'w') as outfile:
for line in sorted_lines:
parts = line.split()
if len(parts) >= 3:
address = parts[0]
mangled_name = parts[2]
demangled_name = demangle_function_name(mangled_name)
new_line = f"{address} {demangled_name}\n"
outfile.write(new_line)