startup with a message if a not supported platform, like
Omega.
omega: make the platform-not-supported-message a bit nicer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7228
static
void drd_post_clo_init(void)
-{ }
+{
+# if defined(VGP_x86_linux) || defined(VGP_amd64_linux)
+ /* fine */
+# else
+ VG_(printf)("\nDRD currently only works on x86-linux and amd64-linux.\n");
+ VG_(printf)("At the very least you need to set PTHREAD_{MUTEX,COND}_SIZE\n");
+ VG_(printf)("in pthread_object_size.h to correct values. Sorry.\n\n");
+ VG_(exit)(0);
+# endif
+}
static
IRSB* drd_instrument(VgCallbackClosure* const closure,
# define PTHREAD_MUTEX_SIZE 40
# define PTHREAD_COND_SIZE 48
#else
-# warning "Unknown platform for PTHREAD_{MUTEX,COND}_SIZE"
+ /* FIXME: fill these fields in correctly. 32 is arbitrary. */
# define PTHREAD_MUTEX_SIZE 32
# define PTHREAD_COND_SIZE 32
#endif
return 0;
}
#elif defined(VGA_ppc32) || defined(VGA_ppc64)
- VG_(printf)("\n\nOmega does not currently work on ppc platforms."
+ VG_(printf)("\nOmega does not currently work on PowerPC/POWER platforms."
" Sorry.\n\n");
VG_(exit)(0);
#else
#elif defined(VGA_ppc32) || defined(VGA_ppc64)
default:
- VG_(printf)("\n\nOmega does not currently work on ppc platforms."
+ VG_(printf)("\nOmega does not currently work on PowerPC/POWER platforms."
" Sorry.\n\n");
VG_(exit)(0);
#else