From 87d33b419bb6dc40816527b553478d482adf69ec Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 31 May 2005 18:31:55 +0000 Subject: PR libstdc++/20534 (contd) 2005-05-31 Paolo Carlini PR libstdc++/20534 (contd) * include/debug/macros.h: Add _GLIBCXX_DEBUG_ABORT, using __gnu_debug::__fancy_abort. * src/debug.cc: Define the latter. * include/debug/debug.h: Use _GLIBCXX_DEBUG_ABORT instead of assert. * config/linker-map.gnu (__gnu_debug::__fancy_abort): Add. From-SVN: r100405 --- libstdc++-v3/src/debug.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libstdc++-v3/src') diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index 3375adf..621a1c9 100644 --- a/libstdc++-v3/src/debug.cc +++ b/libstdc++-v3/src/debug.cc @@ -48,6 +48,15 @@ namespace __gnu_internal namespace __gnu_debug { + void + __fancy_abort(const char* __file, int __line, const char* __function, + const char* __condition) + { + printf("%s:%d: %s: Assertion '%s' failed.\n", __file, __line, + __function, __condition); + abort(); + } + const char* _S_debug_messages[] = { "function requires a valid iterator range [%1.name;, %2.name;)", -- cgit v1.1