Move the definition of PT_[GS]ET{,DB,FP}REGS from the MD ptrace.h to the
MI ptrace.h, since all platforms define them. Keep the MD ptrace.h around for FIX_SSTEP (which is currently only needed on Alpha).
This commit is contained in:
parent
957d4e317a
commit
a2e0658045
@ -37,17 +37,8 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
|
||||
#define FIX_SSTEP(p) ptrace_clear_single_step(p)
|
||||
|
||||
#ifdef _KERNEL
|
||||
#define FIX_SSTEP(p) ptrace_clear_single_step(p)
|
||||
int ptrace_clear_single_step(struct thread *_p);
|
||||
#endif
|
||||
|
||||
|
@ -37,14 +37,4 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
#define PT_GETDBREGS (PT_FIRSTMACH + 5)
|
||||
#define PT_SETDBREGS (PT_FIRSTMACH + 6)
|
||||
|
||||
#endif
|
||||
|
@ -37,14 +37,4 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
#define PT_GETDBREGS (PT_FIRSTMACH + 5)
|
||||
#define PT_SETDBREGS (PT_FIRSTMACH + 6)
|
||||
|
||||
#endif
|
||||
|
@ -37,12 +37,4 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
|
||||
#endif
|
||||
|
@ -37,14 +37,4 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
#define PT_GETDBREGS (PT_FIRSTMACH + 5)
|
||||
#define PT_SETDBREGS (PT_FIRSTMACH + 6)
|
||||
|
||||
#endif
|
||||
|
@ -37,12 +37,4 @@
|
||||
#ifndef _MACHINE_PTRACE_H_
|
||||
#define _MACHINE_PTRACE_H_
|
||||
|
||||
/*
|
||||
* Machine dependent trace commands.
|
||||
*/
|
||||
#define PT_GETREGS (PT_FIRSTMACH + 1)
|
||||
#define PT_SETREGS (PT_FIRSTMACH + 2)
|
||||
#define PT_GETFPREGS (PT_FIRSTMACH + 3)
|
||||
#define PT_SETFPREGS (PT_FIRSTMACH + 4)
|
||||
|
||||
#endif /* !_MACHINE_PTRACE_H_ */
|
||||
#endif
|
||||
|
@ -51,7 +51,14 @@
|
||||
#define PT_ATTACH 10 /* trace some running process */
|
||||
#define PT_DETACH 11 /* stop tracing a process */
|
||||
|
||||
#define PT_FIRSTMACH 32 /* for machine-specific requests */
|
||||
#define PT_GETREGS 33 /* get general-purpose registers */
|
||||
#define PT_SETREGS 34 /* set general-purpose registers */
|
||||
#define PT_GETFPREGS 35 /* get floating-point registers */
|
||||
#define PT_SETFPREGS 36 /* set floating-point registers */
|
||||
#define PT_GETDBREGS 37 /* get debugging registers */
|
||||
#define PT_SETDBREGS 38 /* set debugging registers */
|
||||
|
||||
#define PT_FIRSTMACH 64 /* for machine-specific requests */
|
||||
#include <machine/ptrace.h> /* machine-specific requests, if any */
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
Loading…
x
Reference in New Issue
Block a user