File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,18 @@ VerboseTrapFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
59
59
if (error_message.empty ())
60
60
return {};
61
61
62
- // Replaces "__llvm_verbose_trap : " with "Runtime Error: "
62
+ // Replaces "__llvm_verbose_trap: " with "Runtime Error: "
63
63
auto space_position = error_message.find (" " );
64
- assert (space_position != std::string::npos);
64
+ if (space_position == std::string::npos) {
65
+ Log *log = GetLog (LLDBLog::Unwind);
66
+ LLDB_LOGF (log,
67
+ " Unexpected function name format. Expected '<trap prefix>: "
68
+ " <trap message>' but got: '%s'." ,
69
+ error_message.c_str ());
70
+
71
+ return {};
72
+ }
73
+
65
74
error_message.replace (0 , space_position, " Runtime Error:" );
66
75
67
76
return lldb::RecognizedStackFrameSP (new VerboseTrapRecognizedStackFrame (
You can’t perform that action at this time.
0 commit comments