Skip to content

Commit aa8f732

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 aa8f732

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,17 @@ 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,
97+
ConstString("_sanitizers_address_on_report"));
98+
99+
if (!breakpoint) {
100+
breakpoint = ReportRetriever::SetupBreakpoint(
101+
module_sp, process_sp,
102+
ConstString("_Z22raise_sanitizers_error23sanitizer_error_context"));
103+
}
96104

97105
if (!breakpoint)
98106
return;

0 commit comments

Comments
 (0)