summaryrefslogtreecommitdiff
path: root/sys-devel/parity/files/parity-1.2.6-debugging.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-devel/parity/files/parity-1.2.6-debugging.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-devel/parity/files/parity-1.2.6-debugging.patch')
-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;
+ }
+