In order to make it possible for Valgrind to restart client syscalls
that have been interrupted by signals, on Darwin, generalise an idea
which first emerged in the guest ppc32/64 stuff, in order to solve the
same problem on AIX.

Idea is: make all guests have a pseudo-register "IP_AT_SYSCALL", which
records the address of the most recently executed system call
instruction.  Then, to back up the guest over the most recent syscall,
simply make its program counter equal to this value.  This idea
already existing in the for ppc32/64 guests, but the register was
called "CIA_AT_SC".

Currently is not set in guest-amd64.

This commit will break the Valgrind svn trunk (temporarily).




git-svn-id: svn://svn.valgrind.org/vex/trunk@1886 8f6e269a-dfd6-0310-a8e1-e2731360e62c
11 files changed