234a732de0
* procfs.c: Substantial (but incomplete) changes to support sysv4.2mp procfs as implemented in UnixWare 2.1. The procinfo struct now has substructs like struct flt_ctl instead of just a fltset_t and has a ctl_fd, status_fd, as_fd, and map_fd instead of a single fd. Non-sysv4.2mp procfs models still have the structs and multiple fds, but don't use the entire struct and the four fds all point to the same thing. We use PROCFS_USE_READ_WRITE to decide whether to talk to procfs with reads/writes or use ioctl instead. We use HAVE_MULTIPLE_PROC_FDS to determine whether procfs really has multiple fds or not. PROC_NAME_FMT is split out into CTL_PROC_NAME_FMT, AS_PROC_NAME_FMT, MAP_PROC_NAME_FMT, STATUS_PROC_NAME_FMT. (procfs_notice_signals): now a necessary wrapper around (notice_signals): which are the new guts for noticing signals (open_proc_file): gets a new flag arg used in sysv4.2mp to determine whether or not to attempt to open the ctl_fd. (procfs_read_status): new local function, reads procfs status (procfs_write_pcwstop): new local function, writes a PCWSTOP (procfs_write_pckill): new local function, writes a PCKILL (unconditionally_kill_inferior): remove signo since we now just call procfs_write_pckill(). (procfs_xfer_memory): call lseek with SEEK_SET rather than 0 (proc_iterate_over_mappings): the whole function is ifdefed on UNIXWARE to keep things readable. Expanded the syscall_table to include new potential sysv4.2mp members. Note that all ifdefs of UNIXWARE should be eliminated if possible or renamed to describe what's being selected for a bit better. Sysv4.2mp and IRIX both have SYS_sproc so the IRIX specific code now also checks it's not UNIXWARE. * config/i386/tm-i386v42mp.h: also define HAVE_PSTATUS_T, HAVE_NO_PRRUN_T, PROCFS_USE_READ_WRITE, and UNIXWARE * config/mips/nm-irix4.h: set CTL_PROC_NAME_FMT et al to "/debug/%d" as PROC_NAME_FMT used to be |
||
---|---|---|
.. | ||
.Sanitize | ||
bigmips.mt | ||
bigmips64.mt | ||
decstation.mh | ||
decstation.mt | ||
embed.mt | ||
embed64.mt | ||
embedl.mt | ||
embedl64.mt | ||
irix3.mh | ||
irix3.mt | ||
irix4.mh | ||
irix5.mh | ||
irix5.mt | ||
littlemips.mh | ||
littlemips.mt | ||
mipsel64.mt | ||
mipsm3.mh | ||
mipsm3.mt | ||
mipsv4.mh | ||
mipsv4.mt | ||
news-mips.mh | ||
nm-irix3.h | ||
nm-irix4.h | ||
nm-mips.h | ||
nm-news-mips.h | ||
nm-riscos.h | ||
riscos.mh | ||
tm-bigmips.h | ||
tm-bigmips64.h | ||
tm-embed.h | ||
tm-embed64.h | ||
tm-embedl.h | ||
tm-embedl64.h | ||
tm-irix3.h | ||
tm-irix5.h | ||
tm-mips.h | ||
tm-mips64.h | ||
tm-mipsm3.h | ||
tm-mipsv4.h | ||
tm-vr4300.h | ||
tm-vr4300el.h | ||
tm-vr5000.h | ||
tm-vr5000el.h | ||
tm-vxmips.h | ||
vr4300.mt | ||
vr4300el.mt | ||
vr5000.mt | ||
vr5000el.mt | ||
vxmips.mt | ||
xm-irix3.h | ||
xm-irix4.h | ||
xm-irix5.h | ||
xm-mips.h | ||
xm-mipsm3.h | ||
xm-mipsv4.h | ||
xm-news-mips.h | ||
xm-riscos.h |