We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c09c6e6 commit 5bb5195Copy full SHA for 5bb5195
lldb/source/Target/VerboseTrapFrameRecognizer.cpp
@@ -59,9 +59,18 @@ VerboseTrapFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
59
if (error_message.empty())
60
return {};
61
62
- // Replaces "__llvm_verbose_trap :" with "Runtime Error: "
+ // Replaces "__llvm_verbose_trap: " with "Runtime Error: "
63
auto space_position = error_message.find(" ");
64
- assert(space_position != std::string::npos);
+ 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
74
error_message.replace(0, space_position, "Runtime Error:");
75
76
return lldb::RecognizedStackFrameSP(new VerboseTrapRecognizedStackFrame(
0 commit comments