diff options
author | Kung Hsu <kung@cygnus> | 1995-03-01 00:27:31 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1995-03-01 00:27:31 +0000 |
commit | bc01beb5ea1487fd7882d3b160ac340d7bf2f861 (patch) | |
tree | 2533d206bf71b3c68efdf3af01222a956fcb5919 /gdb/vx-share | |
parent | 75988f9412cb45a93b38a3c190fd324cd7737b32 (diff) | |
download | gdb-bc01beb5ea1487fd7882d3b160ac340d7bf2f861.zip gdb-bc01beb5ea1487fd7882d3b160ac340d7bf2f861.tar.gz gdb-bc01beb5ea1487fd7882d3b160ac340d7bf2f861.tar.bz2 |
* vx-share/ptrace.h: merge in WRS new ptrace requests.
Diffstat (limited to 'gdb/vx-share')
-rw-r--r-- | gdb/vx-share/ptrace.h | 54 |
1 files changed, 41 insertions, 13 deletions
diff --git a/gdb/vx-share/ptrace.h b/gdb/vx-share/ptrace.h index 8f7b057..8e3554f 100644 --- a/gdb/vx-share/ptrace.h +++ b/gdb/vx-share/ptrace.h @@ -1,16 +1,44 @@ -/* Ptrace request codes implemented by the VxWorks remote debug protocol. - These values match those used by SunOS in some old release. */ +/* @(#)ptrace.h 1.1 86/07/07 SMI */ +/* + * Copyright (c) 1985 by Sun Microsystems, Inc. + */ + +/* +modification history +-------------------- +01a,05jun90,llk borrowed. +*/ + +#ifndef _PTRACE_ +#define _PTRACE_ + +/* + * Request values for the ptrace system call + */ enum ptracereq { - PTRACE_GETREGS = 12, - PTRACE_GETFPREGS = 14, - PTRACE_SETREGS = 13, - PTRACE_SETFPREGS = 15, - PTRACE_WRITEDATA = 17, - PTRACE_READDATA = 16, - PTRACE_SINGLESTEP = 9, - PTRACE_CONT = 7, - PTRACE_ATTACH = 10, - PTRACE_DETACH = 11, - PTRACE_KILL = 8 /* no trailing comma */ + PTRACE_TRACEME = 0, /* 0, by tracee to begin tracing */ + PTRACE_CHILDDONE = 0, /* 0, tracee is done with his half */ + PTRACE_PEEKTEXT, /* 1, read word from text segment */ + PTRACE_PEEKDATA, /* 2, read word from data segment */ + PTRACE_PEEKUSER, /* 3, read word from user struct */ + PTRACE_POKETEXT, /* 4, write word into text segment */ + PTRACE_POKEDATA, /* 5, write word into data segment */ + PTRACE_POKEUSER, /* 6, write word into user struct */ + PTRACE_CONT, /* 7, continue process */ + PTRACE_KILL, /* 8, terminate process */ + PTRACE_SINGLESTEP, /* 9, single step process */ + PTRACE_ATTACH, /* 10, attach to an existing process */ + PTRACE_DETACH, /* 11, detach from a process */ + PTRACE_GETREGS, /* 12, get all registers */ + PTRACE_SETREGS, /* 13, set all registers */ + PTRACE_GETFPREGS, /* 14, get all floating point regs */ + PTRACE_SETFPREGS, /* 15, set all floating point regs */ + PTRACE_READDATA, /* 16, read data segment */ + PTRACE_WRITEDATA, /* 17, write data segment */ + PTRACE_READTEXT, /* 18, read text segment */ + PTRACE_WRITETEXT, /* 19, write text segment */ + PTRACE_GETFPAREGS, /* 20, get all fpa regs */ + PTRACE_SETFPAREGS /* 21, set all fpa regs */ }; +#endif !_PTRACE |