diff options
author | Greg Clayton <gclayton@apple.com> | 2012-07-11 20:33:48 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-07-11 20:33:48 +0000 |
commit | 53eb7ad2f75a8eb6dee394cd9140625f6ffe9fd3 (patch) | |
tree | 3c4f889f38f1d363a1a4ecd4acba610a6cd8eaef /lldb/source/Core/Debugger.cpp | |
parent | 1fa2acaed477d6aeb54ad4cb2c5e753ed91b0e80 (diff) | |
download | bcm5719-llvm-53eb7ad2f75a8eb6dee394cd9140625f6ffe9fd3.tar.gz bcm5719-llvm-53eb7ad2f75a8eb6dee394cd9140625f6ffe9fd3.zip |
<rdar://problem/11852100>
The "stop-line-count-after" and "stop-line-count-before" settings are broken. This fixes them.
llvm-svn: 160071
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 628d7600448..a25b789f1d4 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -2630,7 +2630,7 @@ DebuggerInstanceSettings::UpdateInstanceSettingsVariable (const ConstString &var if (new_value != UINT32_MAX) m_stop_source_before_count = new_value; else - err.SetErrorStringWithFormat("invalid unsigned string value '%s' for the '%s' setting", value, StopSourceContextAfterName ().GetCString()); + err.SetErrorStringWithFormat("invalid unsigned string value '%s' for the '%s' setting", value, StopSourceContextBeforeName ().GetCString()); } else if (var_name == StopSourceContextAfterName ()) { @@ -2638,7 +2638,7 @@ DebuggerInstanceSettings::UpdateInstanceSettingsVariable (const ConstString &var if (new_value != UINT32_MAX) m_stop_source_after_count = new_value; else - err.SetErrorStringWithFormat("invalid unsigned string value '%s' for the '%s' setting", value, StopSourceContextBeforeName ().GetCString()); + err.SetErrorStringWithFormat("invalid unsigned string value '%s' for the '%s' setting", value, StopSourceContextAfterName ().GetCString()); } else if (var_name == StopDisassemblyCountName ()) { @@ -2703,13 +2703,13 @@ DebuggerInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, else if (var_name == StopSourceContextAfterName ()) { StreamString strm; - strm.Printf ("%u", m_stop_source_before_count); + strm.Printf ("%u", m_stop_source_after_count); value.AppendString (strm.GetData()); } else if (var_name == StopSourceContextBeforeName ()) { StreamString strm; - strm.Printf ("%u", m_stop_source_after_count); + strm.Printf ("%u", m_stop_source_before_count); value.AppendString (strm.GetData()); } else if (var_name == StopDisassemblyCountName ()) |