don't advice people to use debug options for the GC and core
This commit is contained in:
parent
ba7ef4e30f
commit
d37ff0ab42
1 changed files with 2 additions and 2 deletions
|
|
@ -296,7 +296,7 @@ when not defined(noSignalHandler):
|
||||||
template processSignal(s, action: expr) {.immediate, dirty.} =
|
template processSignal(s, action: expr) {.immediate, dirty.} =
|
||||||
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")
|
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")
|
||||||
elif s == SIGSEGV:
|
elif s == SIGSEGV:
|
||||||
action("SIGSEGV: Illegal storage access. (Try to compile with -d:useSysAssert -d:useGcAssert for details.)\n")
|
action("SIGSEGV: Illegal storage access. (Attempt to read from nil?)\n")
|
||||||
elif s == SIGABRT:
|
elif s == SIGABRT:
|
||||||
when defined(endb):
|
when defined(endb):
|
||||||
if dbgAborting: return # the debugger wants to abort
|
if dbgAborting: return # the debugger wants to abort
|
||||||
|
|
@ -304,7 +304,7 @@ when not defined(noSignalHandler):
|
||||||
elif s == SIGFPE: action("SIGFPE: Arithmetic error.\n")
|
elif s == SIGFPE: action("SIGFPE: Arithmetic error.\n")
|
||||||
elif s == SIGILL: action("SIGILL: Illegal operation.\n")
|
elif s == SIGILL: action("SIGILL: Illegal operation.\n")
|
||||||
elif s == SIGBUS:
|
elif s == SIGBUS:
|
||||||
action("SIGBUS: Illegal storage access. (Try to compile with -d:useSysAssert -d:useGcAssert for details.)\n")
|
action("SIGBUS: Illegal storage access. (Attempt to read from nil?)\n")
|
||||||
else:
|
else:
|
||||||
block platformSpecificSignal:
|
block platformSpecificSignal:
|
||||||
when declared(SIGPIPE):
|
when declared(SIGPIPE):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue