diff options
Diffstat (limited to 'misc/uClibc++/libxx/uClibc++/vterminate.cxx')
-rw-r--r-- | misc/uClibc++/libxx/uClibc++/vterminate.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/uClibc++/libxx/uClibc++/vterminate.cxx b/misc/uClibc++/libxx/uClibc++/vterminate.cxx new file mode 100644 index 000000000..09d19b19f --- /dev/null +++ b/misc/uClibc++/libxx/uClibc++/vterminate.cxx @@ -0,0 +1,22 @@ +/* Copyright (C) 2012 Gregory Nutt + * + * This file is part of the uClibc++ Library. + * + * A replacement for __gnu_cxx::terminate + */ + +#include <basic_definitions> +#include <cstdlib> +#include <cunistd> +#include <debug.h> + +// This is a brain-dead replacement for __gnu_cxx::__verbose_terminate_handler + +namespace __gnu_cxx +{ + void __verbose_terminate_handler() + { + ldbg("PID %d: Terminating...\n", getpid()); + abort(); + } +} |