aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-09-29 19:42:33 +0000
committerCaroline Tice <ctice@apple.com>2010-09-29 19:42:33 +0000
commit9068d794fda9cf9a9ea7ef4b329b2b0893caba0d (patch)
tree39526699b2cb9ab7a9b2096d2e9e8359e302c497 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent923a8cf356ff9b855c69e6e46f0598893e6629a3 (diff)
downloadllvm-9068d794fda9cf9a9ea7ef4b329b2b0893caba0d.zip
llvm-9068d794fda9cf9a9ea7ef4b329b2b0893caba0d.tar.gz
llvm-9068d794fda9cf9a9ea7ef4b329b2b0893caba0d.tar.bz2
Fix breakpoint id range testing to disallow ranges that specify breakpoint locations from
crossing major breakpoint boundaries (must be within a single breakpoint if specifying locations). Add .* as a means of specifying all the breakpoint locations under a major breakpoint, e.g. "3.*" means "all the breakpoint locations of breakpoint 3". Fix error message to make more sense, if user attempts to specify a breakpoint command when there isn't a target yet. llvm-svn: 115077
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 f5c64bc..2fc5f2b 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -275,7 +275,7 @@ CommandObjectBreakpointSet::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. Must set target before setting breakpoints (see 'file' command).");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -709,7 +709,7 @@ CommandObjectBreakpointList::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. No current target or breakpoints.");
result.SetStatus (eReturnStatusSuccessFinishNoResult);
return true;
}
@@ -800,7 +800,7 @@ CommandObjectBreakpointEnable::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. No existing target or breakpoints.");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -900,7 +900,7 @@ CommandObjectBreakpointDisable::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. No existing target or breakpoints.");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -996,7 +996,7 @@ CommandObjectBreakpointDelete::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. No existing target or breakpoints.");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -1229,7 +1229,7 @@ CommandObjectBreakpointModify::Execute
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
- result.AppendError ("Invalid target, set executable file using 'file' command.");
+ result.AppendError ("Invalid target. No existing target or breakpoints.");
result.SetStatus (eReturnStatusFailed);
return false;
}