Date: Sun, 7 Oct 2001 13:08:42 -0700 (PDT) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha procfs_machdep.c src/sys/conf files src/sys/fs/procfs procfs.h procfs_dbregs.c procfs_fpregs.c procfs_mem.c procfs_regs.c src/sys/i386/i386 procfs_machdep.c src/sys/ia64/ia64 procfs_machdep.c src/sys/kern sys_process.c ... Message-ID: <200110072008.f97K8gN20184@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2001/10/07 13:08:42 PDT
Modified files:
sys/alpha/alpha procfs_machdep.c
sys/conf files
sys/fs/procfs procfs.h procfs_dbregs.c procfs_fpregs.c
procfs_mem.c procfs_regs.c
sys/i386/i386 procfs_machdep.c
sys/ia64/ia64 procfs_machdep.c
sys/kern sys_process.c
sys/powerpc/powerpc procfs_machdep.c
sys/sparc64/sparc64 procfs_machdep.c
sys/sys ptrace.h
Log:
Dissociate ptrace from procfs.
Until now, the ptrace syscall was implemented as a wrapper that called
various functions in procfs depending on which ptrace operation was
requested. Most of these functions were themselves wrappers around
procfs_{read,write}_{,db,fp}regs(), with only some extra error checks,
which weren't necessary in the ptrace case anyway.
This commit moves procfs_rwmem() from procfs_mem.c into sys_process.c
(renaming it to proc_rwmem() in the process), and implements ptrace()
directly in terms of procfs_{read,write}_{,db,fp}regs() instead of
having it fake up a struct uio and then call procfs_do{,db,fp}regs().
It also moves the prototypes for procfs_{read,write}_{,db,fp}regs()
and proc_rwmem() from proc.h to ptrace.h, and marks all procfs files
except procfs_machdep.c as "optional procfs" instead of "standard".
Revision Changes Path
1.11 +1 -2 src/sys/alpha/alpha/procfs_machdep.c
1.574 +5 -5 src/sys/conf/files
1.39 +1 -10 src/sys/fs/procfs/procfs.h
1.13 +2 -1 src/sys/fs/procfs/procfs_dbregs.c
1.20 +2 -1 src/sys/fs/procfs/procfs_fpregs.c
1.54 +2 -218 src/sys/fs/procfs/procfs_mem.c
1.19 +2 -1 src/sys/fs/procfs/procfs_regs.c
1.22 +1 -2 src/sys/i386/i386/procfs_machdep.c
1.9 +1 -2 src/sys/ia64/ia64/procfs_machdep.c
1.75 +210 -191 src/sys/kern/sys_process.c
1.13 +1 -2 src/sys/powerpc/powerpc/procfs_machdep.c
1.6 +1 -2 src/sys/sparc64/sparc64/procfs_machdep.c
1.15 +22 -4 src/sys/sys/ptrace.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110072008.f97K8gN20184>
