[clang] Add support for builtin_verbose_trap (PR #79230)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 14:31:21 PST 2024
================
@@ -3424,6 +3443,26 @@ llvm::DIMacroFile *CGDebugInfo::CreateTempMacroFile(llvm::DIMacroFile *Parent,
return DBuilder.createTempMacroFile(Parent, Line, FName);
}
+llvm::DILocation *
+CGDebugInfo::CreateTrapFailureMessageFor(llvm::DebugLoc TrapLocation,
+ StringRef FailureMsg) {
+ // Create a debug location from `TrapLocation` that adds an artificial inline
+ // frame.
+ const char *Prefix = "__llvm_verbose_trap";
----------------
delcypher wrote:
Could "__llvm_verbose_trap" live in a shared header file? That way LLDB doesn't need to hardcode the string in a frame recognizer implementation. It can just use the string in the header file and that way things stay in sync automatically.
https://github.com/llvm/llvm-project/pull/79230
More information about the cfe-commits
mailing list