aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2022-06-22 12:16:24 -0700
committerJim Ingham <jingham@apple.com>2022-06-22 12:18:07 -0700
commitbae10a6bbb1ed6ba8185884e3239fe3556602dab (patch)
treed6dc1dfda5963fafb1fc266e007723f46e59e969 /lldb/source/Commands/CommandObjectProcess.cpp
parentd5716395792696f2b56a0d4debadd040ee385143 (diff)
downloadllvm-bae10a6bbb1ed6ba8185884e3239fe3556602dab.zip
llvm-bae10a6bbb1ed6ba8185884e3239fe3556602dab.tar.gz
llvm-bae10a6bbb1ed6ba8185884e3239fe3556602dab.tar.bz2
Fix a bug with "process continue -b" when no breakpoints are
passed. I was passing the empty list of breakponts to the VerifyBreakpointList routine, but that treats empty as "choose the default breakpoint" which we don't want here.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index def0e00..2f5f649 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -595,9 +595,12 @@ protected:
Target *target = m_exe_ctx.GetTargetPtr();
BreakpointIDList run_to_bkpt_ids;
- CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(
- m_options.m_run_to_bkpt_args, target, result, &run_to_bkpt_ids,
- BreakpointName::Permissions::disablePerm);
+ // Don't pass an empty run_to_breakpoint list, as Verify will look for the
+ // default breakpoint.
+ if (m_options.m_run_to_bkpt_args.GetArgumentCount() > 0)
+ CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(
+ m_options.m_run_to_bkpt_args, target, result, &run_to_bkpt_ids,
+ BreakpointName::Permissions::disablePerm);
if (!result.Succeeded()) {
return false;
}