summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-07-25 23:12:53 +0000
committerSean Callanan <scallanan@apple.com>2013-07-25 23:12:53 +0000
commit4d682d25fb99985534eb52a3e17307117bfe8d77 (patch)
tree2401e49bdd1e9ea5e14679c0cdcb6e9c358b0b87 /lldb/source/Interpreter/OptionGroupWatchpoint.cpp
parent83859acd9111e53d6054e3cd6819df06e4362b90 (diff)
downloadbcm5719-llvm-4d682d25fb99985534eb52a3e17307117bfe8d77.tar.gz
bcm5719-llvm-4d682d25fb99985534eb52a3e17307117bfe8d77.zip
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> llvm-svn: 187169
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupWatchpoint.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupWatchpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
index 7018f147142..9eef37a3ae6 100644
--- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
+++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
@@ -88,7 +88,7 @@ OptionGroupWatchpoint::SetOptionValue (CommandInterpreter &interpreter,
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:
OpenPOWER on IntegriCloud