Skip to content

Commit fbe0844

Browse files
committed
[LLDB] ASanLibsanitizers Use sanitizers_address_on_report breakpoint
symbol This patch puts the default breakpoint on the sanitizers_address_on_report symbol, and uses the old symbol as a backup if the default case is not found rdar://123911522
1 parent cb6ff74 commit fbe0844

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lldb/source/Plugins/InstrumentationRuntime/ASanLibsanitizers/InstrumentationRuntimeASanLibsanitizers.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,16 @@ void InstrumentationRuntimeASanLibsanitizers::Activate() {
9090
if (!process_sp)
9191
return;
9292

93+
lldb::ModuleSP module_sp = GetRuntimeModuleSP();
94+
9395
Breakpoint *breakpoint = ReportRetriever::SetupBreakpoint(
94-
GetRuntimeModuleSP(), process_sp,
95-
ConstString("_Z22raise_sanitizers_error23sanitizer_error_context"));
96+
module_sp, process_sp, ConstString("_sanitizers_address_on_report"));
97+
98+
if (!breakpoint) {
99+
breakpoint = ReportRetriever::SetupBreakpoint(
100+
module_sp, process_sp,
101+
ConstString("_Z22raise_sanitizers_error23sanitizer_error_context"));
102+
}
96103

97104
if (!breakpoint)
98105
return;

0 commit comments

Comments
 (0)