aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/abi.cpp
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2022-02-22 02:11:13 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2022-02-22 02:11:13 -0500
commit65f1968b755855315b931b4b8fa45747576d6536 (patch)
tree77f4cf88950d90182f57c73f69027b4d39375d64 /cores/arduino/abi.cpp
parentf47a97522dc28c16c432422e3085035de69cfaf6 (diff)
parenta1c76c0651192587f495d88b419553edd12a4881 (diff)
Merge tag '1.8.4' into upstream-1.8.4
Diffstat (limited to 'cores/arduino/abi.cpp')
-rw-r--r--cores/arduino/abi.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/cores/arduino/abi.cpp b/cores/arduino/abi.cpp
index 8d719b8..6e1b0f8 100644
--- a/cores/arduino/abi.cpp
+++ b/cores/arduino/abi.cpp
@@ -21,15 +21,16 @@
extern "C" void __cxa_pure_virtual(void) __attribute__ ((__noreturn__));
extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__));
+namespace std {
+ [[gnu::weak, noreturn]] void terminate() {
+ abort();
+ }
+}
+
void __cxa_pure_virtual(void) {
- // We might want to write some diagnostics to uart in this case
- //std::terminate();
- abort();
+ std::terminate();
}
void __cxa_deleted_virtual(void) {
- // We might want to write some diagnostics to uart in this case
- //std::terminate();
- abort();
+ std::terminate();
}
-