symbols: add a special case for common splitdebug module naming
This commit is contained in:
parent
ae4f48dcbc
commit
a743776b24
10
symbols.py
10
symbols.py
@ -29,6 +29,16 @@ if __name__ == '__main__':
|
|||||||
header = f.readline()
|
header = f.readline()
|
||||||
|
|
||||||
field, system, arch, id, name = header.strip().split(' ')
|
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)
|
print(f"Installing {name}: {id}", file=sys.stderr)
|
||||||
|
|
||||||
dst_dir = os.path.join(args.dst, name, id)
|
dst_dir = os.path.join(args.dst, name, id)
|
||||||
|
Loading…
Reference in New Issue
Block a user