Add a target setting (target.use-fast-stepping) to control using the "run to next branch" stepping algorithm.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@176958 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index 1cc48dc..9e9aa56 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -2261,6 +2261,7 @@
"file and line breakpoints." },
// FIXME: This is the wrong way to do per-architecture settings, but we don't have a general per architecture settings system in place yet.
{ "x86-disassembly-flavor" , OptionValue::eTypeEnum , false, eX86DisFlavorDefault, NULL, g_x86_dis_flavor_value_types, "The default disassembly flavor to use for x86 or x86-64 targets." },
+ { "use-fast-stepping" , OptionValue::eTypeBoolean , false, false, NULL, NULL, "Use a fast stepping algorithm based on running from branch to branch rather than instruction single-stepping." },
{ NULL , OptionValue::eTypeInvalid , false, 0 , NULL, NULL, NULL }
};
enum
@@ -2285,7 +2286,8 @@
ePropertyDisableASLR,
ePropertyDisableSTDIO,
ePropertyInlineStrategy,
- ePropertyDisassemblyFlavor
+ ePropertyDisassemblyFlavor,
+ ePropertyUseFastStepping
};
@@ -2624,6 +2626,13 @@
return m_collection_sp->GetPropertyAtIndexAsBoolean (NULL, idx, g_properties[idx].default_uint_value != 0);
}
+bool
+TargetProperties::GetUseFastStepping () const
+{
+ const uint32_t idx = ePropertyUseFastStepping;
+ return m_collection_sp->GetPropertyAtIndexAsBoolean (NULL, idx, g_properties[idx].default_uint_value != 0);
+}
+
const TargetPropertiesSP &
Target::GetGlobalProperties()
{