summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Target/Target.cpp2
-rwxr-xr-xlldb/test/dotest.py10
2 files changed, 11 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 9d605ed0428..e9393d1be0b 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -2745,7 +2745,7 @@ g_properties[] =
{
{ "default-arch" , OptionValue::eTypeArch , true , 0 , NULL, NULL, "Default architecture to choose, when there's a choice." },
{ "expr-prefix" , OptionValue::eTypeFileSpec , false, 0 , NULL, NULL, "Path to a file containing expressions to be prepended to all expressions." },
- { "prefer-dynamic-value" , OptionValue::eTypeEnum , false, eNoDynamicValues , NULL, g_dynamic_value_types, "Should printed values be shown as their dynamic value." },
+ { "prefer-dynamic-value" , OptionValue::eTypeEnum , false, eDynamicDontRunTarget , NULL, g_dynamic_value_types, "Should printed values be shown as their dynamic value." },
{ "enable-synthetic-value" , OptionValue::eTypeBoolean , false, true , NULL, NULL, "Should synthetic values be used by default whenever available." },
{ "skip-prologue" , OptionValue::eTypeBoolean , false, true , NULL, NULL, "Skip function prologues when setting breakpoints by name." },
{ "source-map" , OptionValue::eTypePathMap , false, 0 , NULL, NULL, "Source path remappings used to track the change of location between a source file when built, and "
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py
index c5899dc650d..5c2401ae504 100755
--- a/lldb/test/dotest.py
+++ b/lldb/test/dotest.py
@@ -1193,6 +1193,13 @@ def visit(prefix, dir, names):
suite.addTests(unittest2.defaultTestLoader.loadTestsFromName(base))
+def disabledynamics():
+ ci = lldb.DBG.GetCommandInterpreter()
+ res = lldb.SBCommandReturnObject()
+ ci.HandleCommand("setting set target.prefer-dynamic-value no-dynamic-values", res, False)
+ if not res.Succeeded():
+ raise Exception('disabling dynamic type support failed')
+
def lldbLoggings():
"""Check and do lldb loggings if necessary."""
@@ -1382,6 +1389,9 @@ lldb.runHooks = runHooks
# Turn on lldb loggings if necessary.
lldbLoggings()
+# Disable default dynamic types for testing purposes
+disabledynamics()
+
# Install the control-c handler.
unittest2.signals.installHandler()
OpenPOWER on IntegriCloud