bds@lzaz.ATT.COM (B.SZABLAK) (12/22/88)
I managed to botch the context diff for kernel/const.h . I apologize. Below
is a corrected version. In order that this posting can end on a positive
note, I include a version of <sys/ptrace.h> contributed by Jwahar Bammi.
echo x - ./kernel/const.h.cdif
gres '^X' '' > ./kernel/const.h.cdif << '/'
X*** const.h Thu Dec 22 08:53:46 1988
X--- ../kernel/const.h Thu Dec 22 09:21:25 1988
X***************
X*** 8,13 ****
X--- 8,18 ----
X #define INIT_PSW 0x0200 /* initial psw */
X #define INIT_SP (int*)0x0010 /* initial sp: 3 words pushed by kernel */
X
X+ #define TRACEBIT 0x100 /* or this with psw in proc[] for tracing */
X+ #define SETBITS(rp, new) { /* permits only certain bits to be set */ \
X+ rp->p_pcpsw.psw |= (new & 077); \
X+ rp->p_pcpsw.psw &= (new | ~077); }
X+
X /* The following values are used in the assembly code. Do not change the
X * values of 'ES_REG', 'DS_REG', 'CS_REG', or 'SS_REG' without making the
X * corresponding changes in the assembly code.
X***************
X*** 56,61 ****
X--- 61,71 ----
X /* p_reg contains: d0-d7, a0-a6, in that order. */
X #define NR_REGS 15 /* number of general regs in each proc slot */
X #define RET_REG 0 /* system call return codes go in this reg */
X+
X+ #define TRACEBIT 0x8000 /* or this with psw in proc[] for tracing */
X+ #define SETBITS(rp, new) { /* permits only certain bits to be set */ \
X+ rp->p_pcpsw.psw |= (new & 0xFF); \
X+ rp->p_pcpsw.psw &= (new | ~0xFF); }
X
X #define MEM_BYTES 0x1000000 /* memory size for /dev/mem */
X #define TASK_STACK_BYTES 1024 /* how many bytes for each task stack */
/
#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
# ptrace.h
# This archive created: Wed Dec 21 21:09:23 1988
# By: Jwahar R. Bammi(Case Western Reserve University)
# Uucp: {decvax,sun,att}!cwjcc!dsrgsun!bammi
# Csnet: bammi@dsrgsun.ces.CWRU.edu
# Arpa: bammi@dsrgsun.ces.CWRU.edu
#
export PATH; PATH=/bin:$PATH
echo shar: extracting "'ptrace.h'" '(847 characters)'
if test -f 'ptrace.h'
then
echo shar: over-writing existing file "'ptrace.h'"
fi
sed 's/^X//' << \SHAR_EOF > 'ptrace.h'
X/*
X * <sys/ptrace.h>
X * to go with minix-st ptrace(2) by bds@lzaz.ATT.COM (B.SZABLAK)
X * ++jrb
X */
X
Xtypedef int ptracereq; /* for bsd software portabilty */
X
X/*
X * Request values for the ptrace system call
X */
X#define PTRACE_TRACEME 0 /* by tracee to begin tracing */
X#define PTRACE_CHILDDONE 0 /* tracee is done with his half */
X#define PTRACE_PEEKTEXT 1 /* read word from text segment */
X#define PTRACE_PEEKDATA 2 /* read word from data segment */
X#define PTRACE_PEEKUSER 3 /* read word from user struct */
X#define PTRACE_POKETEXT 4 /* write word into text segment */
X#define PTRACE_POKEDATA 5 /* write word into data segment */
X#define PTRACE_POKEUSER 6 /* write word into user struct */
X#define PTRACE_CONT 7 /* continue process */
X#define PTRACE_KILL 8 /* terminate process */
X#define PTRACE_SINGLESTEP 9 /* single step process */
SHAR_EOF
if test 847 -ne "`wc -c 'ptrace.h'`"
then
echo shar: error transmitting "'ptrace.h'" '(should have been 847 characters)'
fi
# End of shell archive
exit 0