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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115077 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectBreakpoint.cpp b/source/Commands/CommandObjectBreakpoint.cpp
index f5c64bc..2fc5f2b 100644
--- a/source/Commands/CommandObjectBreakpoint.cpp
+++ b/source/Commands/CommandObjectBreakpoint.cpp
@@ -275,7 +275,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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;
}