implement backtraces on panic #3

Closed
opened 2019-08-20 13:55:30 +08:00 by sb10q · 3 comments

The ARTIQ firmware displays a backtrace on the UART when panicking, which makes it easier to troubleshoot problems, especially remotely when a debugger isn't available.

The ARTIQ firmware displays a backtrace on the UART when panicking, which makes it easier to troubleshoot problems, especially remotely when a debugger isn't available.

Currently the panic handler is implemented in this repo, while the unwinder is implemented in artiq_zynq, should we move the implementation to one place? Either move the unwinder here, or implement the panic handler in the artiq_zynq repo?

Currently the panic handler is implemented in this repo, while the unwinder is implemented in artiq_zynq, should we move the implementation to one place? Either move the unwinder here, or implement the panic handler in the artiq_zynq repo?
Poster
Owner

Keep a simple panic handler here. In the artiq-zynq runtime, disable this simple panic handler and replace it with the unwind-aware one.
SZL can probably keep the simple panic handler to keep its code size small.

Keep a simple panic handler here. In the artiq-zynq runtime, disable this simple panic handler and replace it with the unwind-aware one. SZL can probably keep the simple panic handler to keep its code size small.
https://git.m-labs.hk/M-Labs/artiq-zynq/pulls/28
sb10q closed this issue 2020-07-02 20:05:28 +08:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#3
There is no content yet.