builtin: implement generic break_if_debugger_attached()
parent
13e09c61ef
commit
e9bcd36d5e
|
@ -123,4 +123,8 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn break_if_debugger_attached() {
|
fn break_if_debugger_attached() {
|
||||||
|
unsafe {
|
||||||
|
ptr := &voidptr(0)
|
||||||
|
*ptr = 0
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue