Index: lldb/source/Commands/CommandObjectBreakpoint.cpp =================================================================== --- lldb/source/Commands/CommandObjectBreakpoint.cpp +++ lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -622,7 +622,12 @@ result.AppendErrorWithFormat( "Function name regular expression could not be compiled: %s", llvm::toString(std::move(err)).c_str()); - result.SetStatus(eReturnStatusFailed); + if (llvm::StringRef(m_options.m_func_regexp).startswith("*")) + result + .AppendWarning("function names are only searched with the " + "regular expression, so a leading '*' is not " + "necessary.") + result.SetStatus(eReturnStatusFailed); return false; } Index: lldb/test/API/commands/breakpoint/set/func-regex/TestBreakpointRegexError.py =================================================================== --- lldb/test/API/commands/breakpoint/set/func-regex/TestBreakpointRegexError.py +++ lldb/test/API/commands/breakpoint/set/func-regex/TestBreakpointRegexError.py @@ -12,3 +12,8 @@ self.expect("breakpoint set --func-regex (", error=True, substrs=["error: Function name regular expression could " + "not be compiled: parentheses not balanced"]) + self.expect("breakpoint set --func-regex *", error=True, + substrs=["error: Function name regular expression could " + + "not be compiled: repetition-operator operand invalid", + "warning: function names are only searched with " + + "the regular expression, so a leading '*' is not necessary."])