From 8ac697bb57557a366eba2df6449b867b713f1c3d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 13 Jun 2010 13:46:24 +0000 Subject: [PATCH] Made the abort() function available on PPC too. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11172 --- coregrind/m_main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 5c69df6b8e..d245ee6937 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -2668,6 +2668,13 @@ void* memset(void *s, int c, SizeT n) { return VG_(memset)(s,c,n); } +/* BVA: abort() for those platforms that need it (PPC and ARM). */ +void abort(void); +void abort(void){ + VG_(printf)("Something called raise().\n"); + vg_assert(0); +} + /* EAZG: ARM's EABI will call floating point exception handlers in libgcc which boil down to an abort or raise, that's usually defined in libc. Instead, define them here. */ @@ -2678,12 +2685,6 @@ void raise(void){ vg_assert(0); } -void abort(void); -void abort(void){ - VG_(printf)("Something called raise().\n"); - vg_assert(0); -} - void __aeabi_unwind_cpp_pr0(void); void __aeabi_unwind_cpp_pr0(void){ VG_(printf)("Something called __aeabi_unwind_cpp_pr0()\n"); -- 2.47.2