[Lldb-commits] [PATCH] D18660: Update watchpoint help to use new -s flag
Francis Ricci via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 31 11:31:20 PDT 2016
fjricci created this revision.
fjricci added reviewers: spyffe, jingham, Eugene.Zelenko.
fjricci added subscribers: sas, lldb-commits.
Flag updated in D233237
http://reviews.llvm.org/D18660
Files:
source/Commands/CommandObjectWatchpoint.cpp
Index: source/Commands/CommandObjectWatchpoint.cpp
===================================================================
--- source/Commands/CommandObjectWatchpoint.cpp
+++ source/Commands/CommandObjectWatchpoint.cpp
@@ -894,9 +894,9 @@
"watchpoint set variable",
"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. "
+ "the '-s' option to specify the byte size to watch for. "
"If no '-w' option is specified, it defaults to write. "
- "If no '-x' option is specified, it defaults to the variable's "
+ "If no '-s' option is specified, it defaults to the variable's "
"byte size. "
"Note that there are limited hardware resources for watchpoints. "
"If watchpoint setting fails, consider disable/delete existing ones "
@@ -932,7 +932,7 @@
// Push the data for the only argument into the m_arguments vector.
m_arguments.push_back (arg);
- // Absorb the '-w' and '-x' options into our option group.
+ // Absorb the '-w' and '-s' options into our option group.
m_option_group.Append (&m_option_watchpoint, LLDB_OPT_SET_ALL, LLDB_OPT_SET_1);
m_option_group.Finalize();
}
@@ -1103,9 +1103,9 @@
"watchpoint set expression",
"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. "
+ "the '-s' option to specify the byte size to watch for. "
"If no '-w' option is specified, it defaults to write. "
- "If no '-x' option is specified, it defaults to the target's "
+ "If no '-s' option is specified, it defaults to the target's "
"pointer byte size. "
"Note that there are limited hardware resources for watchpoints. "
"If watchpoint setting fails, consider disable/delete existing ones "
@@ -1122,7 +1122,7 @@
R"(
Examples:
-(lldb) watchpoint set expression -w write -x 1 -- foo + 32
+(lldb) watchpoint set expression -w write -s 1 -- foo + 32
Watches write access for the 1-byte region pointed to by the address 'foo + 32')"
);
@@ -1140,7 +1140,7 @@
// Push the data for the only argument into the m_arguments vector.
m_arguments.push_back (arg);
- // Absorb the '-w' and '-x' options into our option group.
+ // Absorb the '-w' and '-s' options into our option group.
m_option_group.Append (&m_option_watchpoint, LLDB_OPT_SET_ALL, LLDB_OPT_SET_1);
m_option_group.Finalize();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18660.52247.patch
Type: text/x-patch
Size: 3122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160331/65ca24c5/attachment-0001.bin>
More information about the lldb-commits
mailing list