[Lldb-commits] [lldb] 7794326 - [lldb][NFC] Clarify that spaces can't be in breakpoint names

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Sun Jul 5 01:55:44 PDT 2020


Author: Raphael Isemann
Date: 2020-07-05T10:55:02+02:00
New Revision: 779432690fba5184464f10ac56eb5ce510d15ea1

URL: https://github.com/llvm/llvm-project/commit/779432690fba5184464f10ac56eb5ce510d15ea1
DIFF: https://github.com/llvm/llvm-project/commit/779432690fba5184464f10ac56eb5ce510d15ea1.diff

LOG: [lldb][NFC] Clarify that spaces can't be in breakpoint names

We already check for spaces but we don't mention it in the error message.

Added: 
    

Modified: 
    lldb/source/Breakpoint/BreakpointID.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Breakpoint/BreakpointID.cpp b/lldb/source/Breakpoint/BreakpointID.cpp
index a8fadbb8b5f3..293baf4ad1c7 100644
--- a/lldb/source/Breakpoint/BreakpointID.cpp
+++ b/lldb/source/Breakpoint/BreakpointID.cpp
@@ -112,7 +112,7 @@ bool BreakpointID::StringIsBreakpointName(llvm::StringRef str, Status &error) {
   // Cannot contain ., -, or space.
   if (str.find_first_of(".- ") != llvm::StringRef::npos) {
     error.SetErrorStringWithFormat("Breakpoint names cannot contain "
-                                   "'.' or '-': \"%s\"",
+                                   "'.' or '-' or spaces: \"%s\"",
                                    str.str().c_str());
     return false;
   }


        


More information about the lldb-commits mailing list