diff --git a/symbols.py b/symbols.py index af0bd23..edcd98d 100755 --- a/symbols.py +++ b/symbols.py @@ -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)