aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-05 20:03:37 +0000
committerZachary Turner <zturner@google.com>2016-10-05 20:03:37 +0000
commit11eb9c64a260a51b5574132973fa2240f9b54c4b (patch)
treefb1d093a2fb459765452fb606a34017703d1db85 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent0a6916f30385c3d3d8dc4a8befd5b6ce57bad721 (diff)
downloadllvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.zip
llvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.tar.gz
llvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.tar.bz2
Convert various CommandInterpreter functions to StringRef.
llvm-svn: 283370
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 4202068..e977698 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -1113,7 +1113,7 @@ protected:
return false;
}
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
// No breakpoint selected; enable all currently set breakpoints.
target->EnableAllBreakpoints();
result.AppendMessageWithFormat("All breakpoints enabled. (%" PRIu64
@@ -1226,7 +1226,7 @@ protected:
return false;
}
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
// No breakpoint selected; disable all currently set breakpoints.
target->DisableAllBreakpoints();
result.AppendMessageWithFormat("All breakpoints disabled. (%" PRIu64
@@ -1400,7 +1400,7 @@ protected:
Stream &output_stream = result.GetOutputStream();
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
// No breakpoint selected; show info about all currently set breakpoints.
result.AppendMessage("Current breakpoints:");
for (size_t i = 0; i < num_breakpoints; ++i) {
@@ -1693,7 +1693,7 @@ protected:
return false;
}
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
if (!m_options.m_force &&
!m_interpreter.Confirm(
"About to delete all breakpoints, do you want to do that?",
@@ -2295,7 +2295,7 @@ protected:
target->GetBreakpointList().GetListMutex(lock);
BreakpointIDList valid_bp_ids;
- if (command.GetArgumentCount() > 0) {
+ if (!command.empty()) {
CommandObjectMultiwordBreakpoint::VerifyBreakpointIDs(
command, target, result, &valid_bp_ids);
@@ -2397,7 +2397,7 @@ void CommandObjectMultiwordBreakpoint::VerifyIDs(Args &args, Target *target,
Args temp_args;
- if (args.GetArgumentCount() == 0) {
+ if (args.empty()) {
if (target->GetLastCreatedBreakpoint()) {
valid_ids->AddBreakpointID(BreakpointID(
target->GetLastCreatedBreakpoint()->GetID(), LLDB_INVALID_BREAK_ID));