symbols: add a special case for common splitdebug module naming

This commit is contained in:
Danny Robson 2021-01-25 12:19:56 +10:00
parent ae4f48dcbc
commit a743776b24

View File

@ -29,6 +29,16 @@ if __name__ == '__main__':
header = f.readline()
field, system, arch, id, name = header.strip().split(' ')
# HACK: Splitdebug binaries are currently named "foo" and "foo.debug".
# We need to run `dump_syms` over "foo.debug" to get the most
# information. But this lists the modulename as "foo.debug" rather
# than "foo".
#
# So we hardcode the removal of this suffix so that the symbol file
# gets placed in a location that `minidump_stackwalk` can find.
if name.endswith(".debug"):
name = name[:-len(".debug")]
print(f"Installing {name}: {id}", file=sys.stderr)
dst_dir = os.path.join(args.dst, name, id)