diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-06-29 19:35:01 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-06-29 19:35:01 +0000 |
commit | cbeddfeed799c28d8216bd7499ac8c5a360ce086 (patch) | |
tree | e1ffc578bc88f78af5ba0d40244cadafc98b7f91 /lldb/source/Commands/CommandObjectWatchpoint.cpp | |
parent | 0ad4d60b8c8a893d91d2082978123a60afd27633 (diff) | |
download | bcm5719-llvm-cbeddfeed799c28d8216bd7499ac8c5a360ce086.tar.gz bcm5719-llvm-cbeddfeed799c28d8216bd7499ac8c5a360ce086.zip |
Make 'watchpoint set' default to write instead of read_write.
llvm-svn: 159455
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpoint.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp index c41d6d92618..ee4b6b96317 100644 --- a/lldb/source/Commands/CommandObjectWatchpoint.cpp +++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp @@ -924,7 +924,7 @@ public: "Set a watchpoint on a variable. " "Use the '-w' option to specify the type of watchpoint and " "the '-x' option to specify the byte size to watch for. " - "If no '-w' option is specified, it defaults to read_write. " + "If no '-w' option is specified, it defaults to write. " "If no '-x' option is specified, it defaults to the variable's " "byte size. " "Note that there are limited hardware resources for watchpoints. " @@ -991,10 +991,10 @@ protected: return false; } - // If no '-w' is specified, default to '-w read_write'. + // If no '-w' is specified, default to '-w write'. if (!m_option_watchpoint.watch_type_specified) { - m_option_watchpoint.watch_type = OptionGroupWatchpoint::eWatchReadWrite; + m_option_watchpoint.watch_type = OptionGroupWatchpoint::eWatchWrite; } // We passed the sanity check for the command. @@ -1087,7 +1087,7 @@ public: "Set a watchpoint on an address by supplying an expression. " "Use the '-w' option to specify the type of watchpoint and " "the '-x' option to specify the byte size to watch for. " - "If no '-w' option is specified, it defaults to read_write. " + "If no '-w' option is specified, it defaults to write. " "If no '-x' option is specified, it defaults to the target's " "pointer byte size. " "Note that there are limited hardware resources for watchpoints. " @@ -1167,10 +1167,10 @@ protected: bool with_dash_w = m_option_watchpoint.watch_type_specified; bool with_dash_x = (m_option_watchpoint.watch_size != 0); - // If no '-w' is specified, default to '-w read_write'. + // If no '-w' is specified, default to '-w write'. if (!with_dash_w) { - m_option_watchpoint.watch_type = OptionGroupWatchpoint::eWatchReadWrite; + m_option_watchpoint.watch_type = OptionGroupWatchpoint::eWatchWrite; } // We passed the sanity check for the command. |