summaryrefslogtreecommitdiff
path: root/sys-devel/parity/files
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/parity/files')
-rw-r--r--sys-devel/parity/files/parity-1.2.6-debugging.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-devel/parity/files/parity-1.2.6-debugging.patch b/sys-devel/parity/files/parity-1.2.6-debugging.patch
new file mode 100644
index 000000000000..709f46ee9734
--- /dev/null
+++ b/sys-devel/parity/files/parity-1.2.6-debugging.patch
@@ -0,0 +1,17 @@
+--- 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;
+ }
+