Nim/lib/system
Andreas Rumpf 1fae66e4df
better nativestacktrace support; refs #15284; backport [1.2] (#15384)
* nimStackTraceOverride: enable stack traces in exceptions

This is a two-step stack trace collection scheme, because re-raised
exceptions will collect multiple stack traces but use them rarely, when
printing info about an uncaught exception, so it makes sense to only do
the cheap stack unwinding all the time and the relatively expensive
debugging information collection on-demand.

`asyncfutures` implements its own `$` proc for printing
`seq[StackTraceEntry]`, so we have to add the debugging info there, just
like we do for the private `$` proc in `system/excpt`.

* cleaned up PR #15284

Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
2020-09-22 13:03:24 +02:00
..
mm allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
alloc.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
ansi_c.nim __stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735) 2020-03-23 21:39:40 +01:00
arc.nim ORC and stdlib optimizations (#15362) 2020-09-19 00:27:43 +02:00
arithm.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
arithmetics.nim Remove deprecated stuff from stdlib (#14699) 2020-06-17 15:25:02 +02:00
assertions.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
assign.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
atomics.nim Fix #14151 (#14205) [backport] 2020-05-03 09:47:21 +02:00
avltree.nim make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes 2017-01-31 13:08:47 +01:00
basic_types.nim Remove dead magics (#13551) 2020-03-03 12:42:43 +01:00
bitmasks.nim more checking for --gc:arc, no need for valgrind (#14467) 2020-05-29 12:08:17 +02:00
cellseqs_v1.nim more checking for --gc:arc, no need for valgrind (#14467) 2020-05-29 12:08:17 +02:00
cellseqs_v2.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
cellsets.nim more checking for --gc:arc, no need for valgrind (#14467) 2020-05-29 12:08:17 +02:00
cgprocs.nim Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
channels.nim change 'iff' to 'if' to stop "corrections" once and for all (#14182) 2020-05-01 15:54:03 +02:00
chcks.nim fixes #15210 [backport:1.2] (#15237) 2020-08-31 14:46:23 +02:00
comparisons.nim fix operators containing percent for VM usage (#13536) 2020-03-11 01:01:25 +01:00
cyclebreaker.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
deepcopy.nim arc: =deepcopy fixes 2020-09-20 10:43:57 +02:00
dollars.nim move since from inclrtl to std/private/since (#14188) 2020-05-02 23:51:59 +02:00
dyncalls.nim Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250) 2020-08-31 11:48:54 +02:00
embedded.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
exceptions.nim better nativestacktrace support; refs #15284; backport [1.2] (#15384) 2020-09-22 13:03:24 +02:00
excpt.nim better nativestacktrace support; refs #15284; backport [1.2] (#15384) 2020-09-22 13:03:24 +02:00
fatal.nim catchable defects (#13626) 2020-03-12 23:44:33 +01:00
formatfloat.nim Revert "printing float values will have one more digit. (#13276) [backport]" (#13363) 2020-02-08 09:30:24 +01:00
gc.nim fixes #13881 2020-05-12 15:46:24 +02:00
gc2.nim forward type alignment information to seqs (#12430) 2020-04-19 07:52:01 +02:00
gc_common.nim fix coro proc crash for stack problem when run long enough than a GC cycle (#7612) (#11410) 2020-09-18 17:17:09 +02:00
gc_hooks.nim gc:destructors progress 2019-09-16 23:54:31 +02:00
gc_interface.nim fixes #13881 2020-05-12 15:46:24 +02:00
gc_ms.nim specialize genericReset (#14398) 2020-05-19 21:42:53 +02:00
gc_regions.nim gc_regions: cleanup & fixes for deallocation (#11920) 2020-08-17 20:20:48 +02:00
hti.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
inclrtl.nim disable sink inference, only enable it for the stdlib. Reason: better source code compatibility (#15105) 2020-07-28 19:18:46 +02:00
indexerrors.nim [other] better error message for IndexError for empty containers (#11476) 2019-06-11 14:34:21 +02:00
integerops.nim fixes #14209 [backport:1.2] (#14213) 2020-05-05 00:48:13 +02:00
io.nim Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250) 2020-08-31 11:48:54 +02:00
iterators.nim Remove outdated comment and copy of length (#14759) 2020-06-22 22:05:18 +02:00
iterators_1.nim fixes #14001 (#14004) 2020-04-19 10:01:04 +02:00
jssys.nim fix js stacktraces, unify all file,line,col formatting into a single function (#14230) 2020-05-05 14:56:15 +02:00
memalloc.nim enable --tlsEmulation:on for --gc:arc (#13685) 2020-03-18 23:52:49 +01:00
memory.nim fixes #13698 [backport:1.2] (#14175) 2020-04-30 22:45:02 +02:00
memtracker.nim make goto based exceptions available for 'nim cpp' (#13244) 2020-01-25 20:00:13 +01:00
mmdisp.nim more checking for --gc:arc, no need for valgrind (#14467) 2020-05-29 12:08:17 +02:00
nimscript.nim fix #15006 (#15007) 2020-07-17 10:53:26 +02:00
orc.nim async: removed the 'unown' references, async never worked with --newruntime anyway and --newruntime is dead (#15374) 2020-09-20 18:01:07 +02:00
osalloc.nim add OpenBSD MAP_STACK for coroutines (#14353) 2020-05-16 21:56:52 +02:00
platforms.nim Add build support for Linux/hppa (#12271) 2019-09-26 15:45:05 +02:00
profiler.nim Give better error message when profiler and memProfiler used at same time (#9948) 2018-12-19 10:02:20 +01:00
repr.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
repr_v2.nim repr_v2 improvements (#14992) 2020-07-15 22:04:15 +02:00
reprjs.nim JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168) 2020-04-30 17:04:53 +01:00
seqs_v2.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
seqs_v2_reimpl.nim allow old styled RTTI for arc/orc (#15331) 2020-09-16 14:57:01 +02:00
setops.nim System cleanup, part 2 (#13155) 2020-01-15 14:42:49 +01:00
sets.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
stacktraces.nim better nativestacktrace support; refs #15284; backport [1.2] (#15384) 2020-09-22 13:03:24 +02:00
strmantle.nim Clean out Deprecated proc (#14797) 2020-06-29 09:33:07 +02:00
strs_v2.nim ORC and stdlib optimizations (#15362) 2020-09-19 00:27:43 +02:00
syslocks.nim Fix c_malloc inside syslocks.nim to take size_t (#15268) [backport] 2020-09-05 23:00:59 +02:00
sysspawn.nim Trim remaining expr/stmt from stdlib (#6742) 2017-11-15 17:34:48 +01:00
sysstr.nim fix #14655 setLen(seq) now zeros memory (#14656) 2020-06-14 11:11:26 +02:00
threadlocalstorage.nim Thread attributes should be destroyed using the pthread_attr_destroy() (#13293) 2020-01-29 17:33:21 +01:00
threads.nim fixes #14370 (#14371) 2020-05-16 17:03:25 +02:00
timers.nim miscellaneous bug fixes (#13291) 2020-01-30 10:54:50 +01:00
widestrs.nim Move wasMoved out of =destroy 2020-07-10 13:36:02 +02:00