Fix missing stacktraces when using -d:useNimRtl (#6716)
This commit is contained in:
parent
46275f6b8f
commit
6a6a2b7d76
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ when defined(endb):
|
||||||
var
|
var
|
||||||
dbgAborting: bool # whether the debugger wants to abort
|
dbgAborting: bool # whether the debugger wants to abort
|
||||||
|
|
||||||
when not defined(noSignalHandler):
|
when not defined(noSignalHandler) and not defined(useNimRtl):
|
||||||
proc signalHandler(sign: cint) {.exportc: "signalHandler", noconv.} =
|
proc signalHandler(sign: cint) {.exportc: "signalHandler", noconv.} =
|
||||||
template processSignal(s, action: untyped) {.dirty.} =
|
template processSignal(s, action: untyped) {.dirty.} =
|
||||||
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")
|
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue