[Lldb-commits] [lldb] r191338 - Target::m_suppress_synthetic_value was a hack required to disable synthetic values while passing an SBValue to a synthetic child provider, or incur an endless recursion
Enrico Granata
egranata at apple.com
Tue Sep 24 15:58:38 PDT 2013
Author: enrico
Date: Tue Sep 24 17:58:37 2013
New Revision: 191338
URL: http://llvm.org/viewvc/llvm-project?rev=191338&view=rev
Log:
Target::m_suppress_synthetic_value was a hack required to disable synthetic values while passing an SBValue to a synthetic child provider, or incur an endless recursion
Now that SBValues can be setup to ignore synthetic values, this is no longer necessary, and so m_suppress_synthetic_value can go away
Another Hack Bites the Dust
Modified:
lldb/trunk/include/lldb/Target/Target.h
lldb/trunk/source/Core/ValueObject.cpp
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/include/lldb/Target/Target.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Target.h?rev=191338&r1=191337&r2=191338&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Target.h (original)
+++ lldb/trunk/include/lldb/Target/Target.h Tue Sep 24 17:58:37 2013
@@ -1095,21 +1095,7 @@ public:
{
return m_suppress_stop_hooks;
}
-
- bool
- SetSuppressSyntheticValue (bool suppress)
- {
- bool old_value = m_suppress_synthetic_value;
- m_suppress_synthetic_value = suppress;
- return old_value;
- }
-
- bool
- GetSuppressSyntheticValue ()
- {
- return m_suppress_synthetic_value;
- }
-
+
// StopHookSP &
// GetStopHookByIndex (size_t index);
//
Modified: lldb/trunk/source/Core/ValueObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=191338&r1=191337&r2=191338&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Tue Sep 24 17:58:37 2013
@@ -2291,7 +2291,7 @@ ValueObject::CalculateSyntheticValue (bo
return;
TargetSP target_sp(GetTargetSP());
- if (target_sp && (target_sp->GetEnableSyntheticValue() == false || target_sp->GetSuppressSyntheticValue() == true))
+ if (target_sp && target_sp->GetEnableSyntheticValue() == false)
{
m_synthetic_value = NULL;
return;
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=191338&r1=191337&r2=191338&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Tue Sep 24 17:58:37 2013
@@ -83,8 +83,7 @@ Target::Target(Debugger &debugger, const
m_source_manager_ap(),
m_stop_hooks (),
m_stop_hook_next_id (0),
- m_suppress_stop_hooks (false),
- m_suppress_synthetic_value(false)
+ m_suppress_stop_hooks (false)
{
SetEventName (eBroadcastBitBreakpointChanged, "breakpoint-changed");
SetEventName (eBroadcastBitModulesLoaded, "modules-loaded");
@@ -208,7 +207,6 @@ Target::Destroy()
m_stop_hooks.clear();
m_stop_hook_next_id = 0;
m_suppress_stop_hooks = false;
- m_suppress_synthetic_value = false;
}
More information about the lldb-commits
mailing list