LLDB mainline
InstrumentationRuntimeUBSan.cpp File Reference

Go to the source code of this file.

Functions

static addr_t RetrieveUnsigned (ValueObjectSP return_value_sp, ProcessSP process_sp, const std::string &expression_path)
static std::string RetrieveString (ValueObjectSP return_value_sp, ProcessSP process_sp, const std::string &expression_path)
static std::string GetStopReasonDescription (StructuredData::ObjectSP report)

Variables

static const char * ub_sanitizer_retrieve_report_data_prefix
static const char * ub_sanitizer_retrieve_report_data_command

Function Documentation

◆ GetStopReasonDescription()

std::string GetStopReasonDescription ( StructuredData::ObjectSP report)
static

◆ RetrieveString()

std::string RetrieveString ( ValueObjectSP return_value_sp,
ProcessSP process_sp,
const std::string & expression_path )
static

Definition at line 94 of file InstrumentationRuntimeUBSan.cpp.

References error(), and RetrieveUnsigned().

◆ RetrieveUnsigned()

addr_t RetrieveUnsigned ( ValueObjectSP return_value_sp,
ProcessSP process_sp,
const std::string & expression_path )
static

Variable Documentation

◆ ub_sanitizer_retrieve_report_data_command

const char* ub_sanitizer_retrieve_report_data_command
static
Initial value:
= R"(
struct {
const char *issue_kind;
const char *message;
const char *filename;
unsigned line;
unsigned col;
char *memory_addr;
} t;
__ubsan_get_current_report_data(&t.issue_kind, &t.message, &t.filename, &t.line,
&t.col, &t.memory_addr);
t;
)"

Definition at line 72 of file InstrumentationRuntimeUBSan.cpp.

Referenced by lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().

◆ ub_sanitizer_retrieve_report_data_prefix

const char* ub_sanitizer_retrieve_report_data_prefix
static
Initial value:
= R"(
extern "C" {
void
__ubsan_get_current_report_data(const char **OutIssueKind,
const char **OutMessage, const char **OutFilename, unsigned *OutLine,
unsigned *OutCol, char **OutMemoryAddr);
}
)"

Definition at line 63 of file InstrumentationRuntimeUBSan.cpp.

Referenced by lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().