You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-devel/parity/files/parity-1.2.6-debugging.patch

18 lines
431 B

--- parity.runtime/diagnose.c.orig 2012-09-28 17:12:54 +0200
+++ parity.runtime/diagnose.c 2012-09-28 17:11:14 +0200
@@ -745,9 +745,11 @@
CloseHandle(hCore);
}
- // abort on fatal exceptions
- TerminateProcess(GetCurrentProcess(), 1);
- ExitProcess(1);
+ if (!IsDebuggerPresent()) {
+ // abort on fatal exceptions
+ TerminateProcess(GetCurrentProcess(), 1);
+ ExitProcess(1);
+ }
return EXCEPTION_CONTINUE_SEARCH;
}