nativeStackTrace might work again
This commit is contained in:
parent
de538deb7a
commit
869e7d93e0
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
# use the heap (and nor exceptions) do not include the GC or memory allocator.
|
# use the heap (and nor exceptions) do not include the GC or memory allocator.
|
||||||
|
|
||||||
var
|
var
|
||||||
errorMessageWriter*: (proc(msg: string): void {.tags: [FWriteIO].})
|
errorMessageWriter*: (proc(msg: string) {.tags: [FWriteIO].})
|
||||||
## Function that will be called
|
## Function that will be called
|
||||||
## instead of stdmsg.write when printing stacktrace.
|
## instead of stdmsg.write when printing stacktrace.
|
||||||
## Unstable API.
|
## Unstable API.
|
||||||
|
|
@ -80,9 +80,9 @@ when defined(nativeStacktrace) and nativeStackTraceSupported:
|
||||||
type
|
type
|
||||||
TDl_info {.importc: "Dl_info", header: "<dlfcn.h>",
|
TDl_info {.importc: "Dl_info", header: "<dlfcn.h>",
|
||||||
final, pure.} = object
|
final, pure.} = object
|
||||||
dli_fname: CString
|
dli_fname: cstring
|
||||||
dli_fbase: pointer
|
dli_fbase: pointer
|
||||||
dli_sname: CString
|
dli_sname: cstring
|
||||||
dli_saddr: pointer
|
dli_saddr: pointer
|
||||||
|
|
||||||
proc backtrace(symbols: ptr pointer, size: int): int {.
|
proc backtrace(symbols: ptr pointer, size: int): int {.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue