From 12905858fceaba16236d3488aca79f66c55f441f Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Thu, 30 Nov 2023 11:43:04 +0100 Subject: [PATCH] [debug][bindings][python] Let lldb narrow list of symbols Marshalling the full list of symbols to Python and filtering that was slow for binaries with large numbers of symbols. ^KT-63749 --- kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py b/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py index 3db64c28831..0a2f21ca561 100644 --- a/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -77,7 +77,7 @@ def _symbol_loaded_address(name, debugger = lldb.debugger): process = target.GetProcess() thread = process.GetSelectedThread() frame = thread.GetSelectedFrame() - candidates = list(filter(lambda x: x.name == name, frame.module.symbols)) + candidates = frame.module.symbol[name] # take first for candidate in candidates: address = candidate.GetStartAddress().GetLoadAddress(target)