ptrace_user_32.h 604 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11
/* 
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

#ifndef __SYSDEP_I386_PTRACE_USER_H__
#define __SYSDEP_I386_PTRACE_USER_H__

#include <sys/ptrace.h>
#include <linux/ptrace.h>
#include <asm/ptrace.h>
12
#include <generated/user_constants.h>
L
Linus Torvalds 已提交
13 14 15 16 17 18 19 20

#define PT_OFFSET(r) ((r) * sizeof(long))

#define PT_SYSCALL_NR(regs) ((regs)[ORIG_EAX])
#define PT_SYSCALL_NR_OFFSET PT_OFFSET(ORIG_EAX)

#define PT_SYSCALL_RET_OFFSET PT_OFFSET(EAX)

21 22 23
#define REGS_IP_INDEX EIP
#define REGS_SP_INDEX UESP

J
Jeff Dike 已提交
24
#define FP_SIZE ((HOST_FPX_SIZE > HOST_FP_SIZE) ? HOST_FPX_SIZE : HOST_FP_SIZE)
J
Jeff Dike 已提交
25

L
Linus Torvalds 已提交
26
#endif