]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made the abort() function available on PPC too.
authorBart Van Assche <bvanassche@acm.org>
Sun, 13 Jun 2010 13:46:24 +0000 (13:46 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 13 Jun 2010 13:46:24 +0000 (13:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11172

coregrind/m_main.c

index 5c69df6b8e9081b41bb4401003455a2b2414dc8f..d245ee693726f16d7e096d459c143a623ea53763 100644 (file)
@@ -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");