This repository was archived by the owner on Oct 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/addins/PerformanceDiagnostics/PerformanceDiagnostics Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ MONOSTUB_STATIC_LINK=$(EXTERNAL)/Xamarin.Mac.registrar.full.a
1313
1414if !RELEASE_BUILDS
1515HYBRID_SUSPEND_ABORT =-DHYBRID_SUSPEND_ABORT
16+ ENABLE_DEBUG_CRASHER =-DENABLE_DEBUG_CRASHER
1617endif
1718
1819# SDK_PATH=$(shell xcrun --sdk macosx10.8 --show-sdk-path)
@@ -49,7 +50,7 @@ dmg: render.exe app
4950 ./make-dmg-bundle.sh
5051
5152monostub.o : monostub.mm $(MONOSTUB_EXTRA_SOURCEFILES )
52- g++ -g $(HYBRID_SUSPEND_ABORT ) -c -Wall -m64 -o $@ monostub.mm
53+ g++ -g $(HYBRID_SUSPEND_ABORT ) $( ENABLE_DEBUG_CRASHER ) -c -Wall -m64 -o $@ monostub.mm
5354
5455monostub-nogui.o : monostub.mm $(MONOSTUB_EXTRA_SOURCEFILES )
5556 g++ -g $(HYBRID_SUSPEND_ABORT ) -DNOGUI -c -Wall -m64 -o $@ monostub.mm
Original file line number Diff line number Diff line change 227227 }
228228}
229229
230- extern " C" void crash_me ()
230+ #if ENABLE_DEBUG_CRASHER
231+ extern " C" void debug_trigger_sigsegv ()
231232{
232233 void *p = (void *)0x12345 ;
233234 *(int *)p = 0 ;
234235}
236+ #endif
235237
236238int
237239main (int argc, char **argv)
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ protected override void Run ()
205205 class InduceNativePInvokeCrashHandler : CommandHandler
206206 {
207207 [ DllImport ( "__Internal" ) ]
208- static extern void crash_me ( ) ;
208+ static extern void debug_trigger_sigsegv ( ) ;
209209
210210 protected override void Run ( )
211211 {
You can’t perform that action at this time.
0 commit comments