Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to put panic implementations? #179

Open
jonas-schievink opened this issue Apr 30, 2019 · 2 comments
Open

Where to put panic implementations? #179

jonas-schievink opened this issue Apr 30, 2019 · 2 comments

Comments

@jonas-schievink
Copy link
Contributor

There's quite a few panic implementations now, so I think it'd be useful to list them here. I'm not sure where exactly they should be put though, because some of them are platform-independent while others aren't. Personally I think these belong in their own section.

List of crates:

  • panic-halt: Halts the processor on panics
  • panic-abort: Causes an abort on panics (nightly-only)
  • panic-ramdump: Writes the panic message into the beginning of RAM and enters an infinite loop; the message can be extracted by attaching a debugger (Cortex-M only)
  • panic-semihosting: Prints the panic message via semihosting to an attached debugger (Cortex-M only)
  • panic-itm: Prints the panic through the chip's ITM to a debugger attached to the SWO pin (Cortex-M with ITM only)
@jonas-schievink
Copy link
Contributor Author

Forgot about panic-never.

@Disasm
Copy link
Member

Disasm commented May 7, 2019

Maybe these deserve to be in the panic-section too:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants