[Lldb-commits] [lldb] r117555 - /lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp

Caroline Tice ctice at apple.com
Thu Oct 28 09:28:56 PDT 2010


Author: ctice
Date: Thu Oct 28 11:28:56 2010
New Revision: 117555

URL: http://llvm.org/viewvc/llvm-project?rev=117555&view=rev
Log:
Add warning if no actual locations were resolved when attempting
to set a breakpoint.


Modified:
    lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp

Modified: lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp?rev=117555&r1=117554&r2=117555&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp Thu Oct 28 11:28:56 2010
@@ -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)





More information about the lldb-commits mailing list