[scripts] Ignore demangle errors building sym table

For some reason, cxxfilt fails to demangle some names on some systems.
Instead of failing the build process, just skip those symbols.
This commit is contained in:
Justin C. Miller
2021-01-06 11:30:40 -08:00
parent 7b23310d8b
commit a0d165c79b

View File

@@ -27,11 +27,12 @@ def parse_syms(infile):
if t not in "tTvVwW": continue if t not in "tTvVwW": continue
try: try:
addr = int(addr, base=16)
name = demangle(mangled) name = demangle(mangled)
syms.append((addr, name))
except InvalidName: except InvalidName:
pass continue
addr = int(addr, base=16)
syms.append((addr, name))
return sorted(syms) return sorted(syms)