From a743776b248cdfd0c8d506b3cec2fe8ce389c8a8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 25 Jan 2021 12:19:56 +1000 Subject: [PATCH] symbols: add a special case for common splitdebug module naming --- symbols.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)