diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-28 16:28:56 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-28 16:28:56 +0000 |
commit | be484f413dd71b8bf16068f75e00e284d2827ac9 (patch) | |
tree | 6b644e3f6d48198e7f7cdbe8df475ea7a9ad4090 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 22b881dc34355b1149049e337e8507ba1ff026bf (diff) | |
download | bcm5719-llvm-be484f413dd71b8bf16068f75e00e284d2827ac9.tar.gz bcm5719-llvm-be484f413dd71b8bf16068f75e00e284d2827ac9.zip |
Add warning if no actual locations were resolved when attempting
to set a breakpoint.
llvm-svn: 117555
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 55e83fef491..7894f55c313 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -372,6 +372,9 @@ CommandObjectBreakpointSet::Execute output_stream.Printf ("Breakpoint created: "); bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief); output_stream.EOL(); + if (bp->GetNumLocations() == 0) + output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual" + " locations.\n"); result.SetStatus (eReturnStatusSuccessFinishResult); } else @@ -416,6 +419,9 @@ CommandObjectBreakpointSet::Execute output_stream.Printf ("Breakpoint created: "); bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief); output_stream.EOL(); + if (bp->GetNumLocations() == 0) + output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual" + " locations.\n"); result.SetStatus (eReturnStatusSuccessFinishResult); } else @@ -446,6 +452,9 @@ CommandObjectBreakpointSet::Execute output_stream.Printf ("Breakpoint created: "); bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief); output_stream.EOL(); + if (bp->GetNumLocations() == 0) + output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual" + " locations.\n"); result.SetStatus (eReturnStatusSuccessFinishResult); } else @@ -490,6 +499,8 @@ CommandObjectBreakpointSet::Execute output_stream.Printf ("Breakpoint created: "); bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief); output_stream.EOL(); + if (bp->GetNumLocations() == 0) + output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual locations.\n"); result.SetStatus (eReturnStatusSuccessFinishResult); } else if (!bp) |