diff options
author | Ayke van Laethem <[email protected]> | 2024-08-05 13:34:02 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2024-08-06 13:28:07 +0200 |
commit | 020664591ab3a995d6d0aab5097c6fab838a925c (patch) | |
tree | 20b3600a388e96d36d6d05ea16b4a90510e73a4e /testdata | |
parent | 2d6d9eb76df322a7970dff5183f15ff8dc545301 (diff) | |
download | tinygo-020664591ab3a995d6d0aab5097c6fab838a925c.tar.gz tinygo-020664591ab3a995d6d0aab5097c6fab838a925c.zip |
main: show runtime panic addresses for `tinygo run`
This adds the same panic locations that are already present for
`tinygo flash -monitor`, but for `tinygo run` and `tinygo test`.
For example, this is the output that I get while working on some GC
code. It now shows the source location instead of just an address:
$ tinygo test -v archive/zip
=== RUN TestReader
=== RUN TestReader/test.zip
panic: runtime error at 0x000000000024d9b4: goroutine stack overflow
[tinygo: panic at /home/ayke/src/tinygo/tinygo/src/internal/task/task_stack.go:58:15]
FAIL archive/zip 0.139s
(This particular location isn't all that useful, but it shows that the
feature works).
Diffstat (limited to 'testdata')
0 files changed, 0 insertions, 0 deletions