1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-06 01:23:41 +01:00

Offsets of fields in ucontext structure are added for solaris

This commit is contained in:
esil 2010-08-02 09:16:46 -07:00
parent ee32be6651
commit 08d42049e2

View file

@ -22,6 +22,8 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#ifdef __linux__
#define UC_MCONTEXT_GREGS_R8 0x28
#define UC_MCONTEXT_GREGS_R9 0x30
#define UC_MCONTEXT_GREGS_R10 0x38
@ -42,3 +44,34 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#define UC_MCONTEXT_FPREGS_PTR 0x1a8
#define UC_MCONTEXT_FPREGS_MEM 0xe0
#define FPREGS_OFFSET_MXCSR 0x18
#elif defined(__sun)
#define UC_MCONTEXT_GREGS_R8 0x78
#define UC_MCONTEXT_GREGS_R9 0x70
#define UC_MCONTEXT_GREGS_R10 0x68
#define UC_MCONTEXT_GREGS_R11 0x60
#define UC_MCONTEXT_GREGS_R12 0x58
#define UC_MCONTEXT_GREGS_R13 0x50
#define UC_MCONTEXT_GREGS_R14 0x48
#define UC_MCONTEXT_GREGS_R15 0x40
#define UC_MCONTEXT_GREGS_RDI 0x80
#define UC_MCONTEXT_GREGS_RSI 0x88
#define UC_MCONTEXT_GREGS_RBP 0x90
#define UC_MCONTEXT_GREGS_RBX 0x98
#define UC_MCONTEXT_GREGS_RDX 0xa0
#define UC_MCONTEXT_GREGS_RAX 0xb0
#define UC_MCONTEXT_GREGS_RCX 0xa8
#define UC_MCONTEXT_GREGS_RSP 0xe0
#define UC_MCONTEXT_GREGS_RIP 0xc8
#define UC_MCONTEXT_FPREGS_MEM 0x120
#define FPREGS_OFFSET_MXCSR 0x18
#else // __sun
#error "Define fields offsets in ucontext structure for your platform"
#endif // __sun