Add warning if no actual locations were resolved when attempting
to set a breakpoint.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117555 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectBreakpoint.cpp b/source/Commands/CommandObjectBreakpoint.cpp
index 55e83fe..7894f55 100644
--- a/source/Commands/CommandObjectBreakpoint.cpp
+++ b/source/Commands/CommandObjectBreakpoint.cpp
@@ -372,6 +372,9 @@
                             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 @@
                             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 @@
                             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 @@
         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)