[all-commits] [llvm/llvm-project] d2f3b6: [NFC] Don't bother with unstripped binary w/ dSYM, ...
Jason Molenda via All-commits
all-commits at lists.llvm.org
Mon May 16 15:31:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2f3b6020fbfa2dd56ebd03c942acda961c421e2
https://github.com/llvm/llvm-project/commit/d2f3b6020fbfa2dd56ebd03c942acda961c421e2
Author: Jason Molenda <jason at molenda.com>
Date: 2022-05-16 (Mon, 16 May 2022)
Changed paths:
M lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
M lldb/source/Symbol/LocateSymbolFileMacOSX.cpp
Log Message:
-----------
[NFC] Don't bother with unstripped binary w/ dSYM, don't DebugSymbols twice
This patch addresses two perf issues when we find a dSYM on macOS
after calling into the DebugSymbols framework. First, when we have
a local (probably stripped) binaary, we find the dSYM and we may
be told about the location of the symbol rich binary (probably
unstripped) which may be on a remote filesystem. We don't need the
unstripped binary, use the local binary we already have.
Second, after we've found the path to the dSYM, save that in the Module
so we don't call into DebugSymbols a second time later on to
rediscover it. If the user has a DBGShellCommands set, we need to
exec that process twice, serially, which can add up.
Differential Revision: https://reviews.llvm.org/D125616
rdar://84576917
More information about the All-commits
mailing list