aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-02-08 22:37:48 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-02-08 22:37:48 +0000
commit2ffa754a6f9e640cc0bcadf51174b8c1f2ab2393 (patch)
treec1cf822a65c221d551bccda47262398e9ebd6dbf /lldb/source/Commands/CommandObjectFrame.cpp
parent8610a59de134450ae7ef142dab2cbe0f86d615cb (diff)
downloadllvm-2ffa754a6f9e640cc0bcadf51174b8c1f2ab2393.zip
llvm-2ffa754a6f9e640cc0bcadf51174b8c1f2ab2393.tar.gz
llvm-2ffa754a6f9e640cc0bcadf51174b8c1f2ab2393.tar.bz2
After discussions with Jim and Greg, modify the 'watchpoint set' command to become a mutiword command
with subcommand 'expression' and 'variable'. The first subcommand is for supplying an expression to be evaluated into an address to watch for, while the second is for watching a variable. 'watchpoint set expression' is a raw command, which means that you need to use the "--" option terminator to end the '-w' or '-x' option processing and to start typing your expression. Also update several test cases to comply and add a couple of test cases into TestCompletion.py, in particular, test that 'watchpoint set ex' completes to 'watchpoint set expression ' and that 'watchpoint set var' completes to 'watchpoint set variable '. llvm-svn: 150109
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index f1d51a1..24dd4a4 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -433,7 +433,7 @@ public:
if (variable_list)
{
// If watching a variable, there are certain restrictions to be followed.
- if (m_option_watchpoint.watch_variable)
+ if (m_option_watchpoint.watch_type_specified)
{
if (command.GetArgumentCount() != 1) {
result.GetErrorStream().Printf("error: specify exactly one variable when using the '-w' option\n");
@@ -544,7 +544,7 @@ public:
options,
format);
// Process watchpoint if necessary.
- if (m_option_watchpoint.watch_variable)
+ if (m_option_watchpoint.watch_type_specified)
{
AddressType addr_type;
lldb::addr_t addr = 0;