commit | 71e8310be2e24d62dc8de93d0cd7ab85f02e33ad | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Sep 27 19:40:09 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 27 19:40:09 2022 +0000 |
tree | 659c3bb6cb6ca1653b43490be6d99a7f6d889e7b | |
parent | 6d68798c659f9cc5237ec1079322792181dbbdf5 [diff] |
pw_toolchain: Wrap the C standard library abort function The abort or std::abort function does not work as intended by default. Typically, its implementation pulls in some undesired dependencies, such as std::raise, and ends in a while (true) loop, rather than crashing. This commit adds a wrapped implementation of abort that redirects to PW_CRASH. Change-Id: I62e06f2f875b524723887b5b3f8fda2fbcd72518 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112310 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Armando Montanez <amontanez@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.