From 1ca2a12b118edfb9b385ed844052f1f93a9ff76e Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Thu, 9 Jan 2020 15:07:09 +0100 Subject: [PATCH] [debugger][binding] fix invalid dicitionary default initializator --- llvmDebugInfoC/src/scripts/konan_lldb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvmDebugInfoC/src/scripts/konan_lldb.py b/llvmDebugInfoC/src/scripts/konan_lldb.py index 9e0766a34ad..e87855778b7 100644 --- a/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -73,7 +73,7 @@ SYNTHETIC_OBJECT_LAYOUT_CACHE = {} TO_STRING_DEPTH = 2 ARRAY_TO_STRING_LIMIT = 10 -def kotlin_object_type_summary(lldb_val, internal_dict = []): +def kotlin_object_type_summary(lldb_val, internal_dict = {}): """Hook that is run by lldb to display a Kotlin object.""" log(lambda: "kotlin_object_type_summary({:#x})".format(lldb_val.unsigned)) fallback = lldb_val.GetValue() @@ -97,7 +97,7 @@ def select_provider(lldb_val, tip, internal_dict): else __FACTORY['object'](lldb_val, tip, internal_dict) class KonanHelperProvider(lldb.SBSyntheticValueProvider): - def __init__(self, valobj, amString, internal_dict = []): + def __init__(self, valobj, amString, internal_dict = {}): self._target = lldb.debugger.GetSelectedTarget() self._process = self._target.GetProcess() self._valobj = valobj