Added beginnings of an ARM port, to the point where it compiles.  It does not
run, though.  There are lots of stubs to be filled in.  (The asm ones currently
just have "swi" in them, which seems to cause seg faults.) 

Also, some of the macros are decided dubious, especially:

  ARCH_* are bogus
  SYSCALL_RET is bogus
  PLATFORM_SET_SYSCALL_RESULT is bogus
  not sure about SET_SYSCALL_RETVAL
  FIRST_STACK_FRAME et al -- bogus?
  VG_MAX_JUMPS ?

And in stage2.lds, the 0x8048000 is almost certainly wrong


This required some tweakings of the core:
- some of the vki_*.h kernel types were fixed up

- had to disable the AM_PROG_CC_C_O macro in configure.in, because automake
  (autoconf?) didn't like it...

- some "#ifdef __x86__" guards were introduced, for nasty x86 things I don't
  yet know how to factor out (trampoline page muck, sysinfo page muck).

- fixed a minor stupidity in vg_proxylwp.c.

- moved the ptrace wrapper into the x86-linux part

- had to change the intercept mangling scheme, to use 'J' instead of '$' as the
  escape char because GCC didn't like '$'.  This is all very dubious, and only
  works because none of our intercepted symbols contains a 'J'.  To be fixed up
  ASAP.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3120 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/core.h b/coregrind/core.h
index 7d131ea..4d4dd92 100644
--- a/coregrind/core.h
+++ b/coregrind/core.h
@@ -79,7 +79,6 @@
    external tools.
 */
 
-
 /* For system call numbers __NR_... */
 #include "vki_unistd.h"
 
@@ -992,6 +991,12 @@
    Exports of vg_mylibc.c
    ------------------------------------------------------------------ */
 
+// Useful for making failing stubs, when certain things haven't yet been
+// implemented.
+#define I_die_here                                                    \
+   VG_(core_assert_fail) ("Unimplemented functionality",              \
+                           __FILE__, __LINE__, __PRETTY_FUNCTION__)
+
 #define vg_assert(expr)                                               \
   ((void) ((expr) ? 0 :						      \
 	   (VG_(core_assert_fail) (VG__STRING(expr),	              \