summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-12-19 19:45:31 +0000
committerJim Ingham <jingham@apple.com>2014-12-19 19:45:31 +0000
commit4aeb19893bab27da6ffc6f95a01c6a38d664dbd2 (patch)
tree004e1a73c87dd6443253f6e6e131e1fd840b72d4 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parentd6b24fa1e2fbb0ca74a4a1684ce33bca26919621 (diff)
downloadbcm5719-llvm-4aeb19893bab27da6ffc6f95a01c6a38d664dbd2.tar.gz
bcm5719-llvm-4aeb19893bab27da6ffc6f95a01c6a38d664dbd2.zip
Don't emit the "WARNING: no locations" message when breakpoints are set in
the dummy target. Say they were set in the dummy target instead. llvm-svn: 224606
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index ca82c4ab5d6..3d4b3aff6ff 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -583,10 +583,17 @@ protected:
Stream &output_stream = result.GetOutputStream();
const bool show_locations = false;
bp->GetDescription(&output_stream, lldb::eDescriptionLevelInitial, show_locations);
- // Don't print out this warning for exception breakpoints. They can get set before the target
- // is set, but we won't know how to actually set the breakpoint till we run.
- if (bp->GetNumLocations() == 0 && break_type != eSetTypeException)
- output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual locations.\n");
+ if (target == m_interpreter.GetDebugger().GetDummyTarget())
+ output_stream.Printf ("Breakpoint set in dummy target, will get copied into future targets.\n");
+ else
+ {
+ // Don't print out this warning for exception breakpoints. They can get set before the target
+ // is set, but we won't know how to actually set the breakpoint till we run.
+ if (bp->GetNumLocations() == 0 && break_type != eSetTypeException)
+ {
+ output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual locations.\n");
+ }
+ }
result.SetStatus (eReturnStatusSuccessFinishResult);
}
else if (!bp)
OpenPOWER on IntegriCloud