[Lldb-commits] [lldb] r187169 - Fixed several problems with watchpoint expressions.
Sean Callanan
scallanan at apple.com
Thu Jul 25 16:12:53 PDT 2013
Author: spyffe
Date: Thu Jul 25 18:12:53 2013
New Revision: 187169
URL: http://llvm.org/viewvc/llvm-project?rev=187169&view=rev
Log:
Fixed several problems with watchpoint expressions.
- First, the watchpoint size was being cast to the
wrong type. This is primarily cosmetic, but
annoying.
- Second, the options for the watchpoint command
were not being initialized correctly, which led
to the watchpoint size sometimes having absurdly
large values. This caused watchpoints to fail to
be set in some cases.
<rdar://problem/12658775>
Modified:
lldb/trunk/source/Commands/CommandObjectWatchpoint.cpp
lldb/trunk/source/Interpreter/OptionGroupWatchpoint.cpp
Modified: lldb/trunk/source/Commands/CommandObjectWatchpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectWatchpoint.cpp?rev=187169&r1=187168&r2=187169&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectWatchpoint.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectWatchpoint.cpp Thu Jul 25 18:12:53 2013
@@ -1185,6 +1185,8 @@ protected:
virtual bool
DoExecute (const char *raw_command, CommandReturnObject &result)
{
+ m_option_group.NotifyOptionParsingStarting(); // This is a raw command, so notify the option group
+
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
StackFrame *frame = m_exe_ctx.GetFramePtr();
Modified: lldb/trunk/source/Interpreter/OptionGroupWatchpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionGroupWatchpoint.cpp?rev=187169&r1=187168&r2=187169&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionGroupWatchpoint.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionGroupWatchpoint.cpp Thu Jul 25 18:12:53 2013
@@ -88,7 +88,7 @@ OptionGroupWatchpoint::SetOptionValue (C
break;
}
case 'x':
- watch_size = (WatchType) Args::StringToOptionEnum(option_arg, g_option_table[option_idx].enum_values, 0, error);
+ watch_size = (uint32_t) Args::StringToOptionEnum(option_arg, g_option_table[option_idx].enum_values, 0, error);
break;
default:
More information about the lldb-commits
mailing list