From owner-cvs-sys Sat Apr 5 18:29:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA16606 for cvs-sys-outgoing; Sat, 5 Apr 1997 18:29:52 -0800 (PST) Received: (from dyson@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA16599; Sat, 5 Apr 1997 18:29:50 -0800 (PST) Date: Sat, 5 Apr 1997 18:29:50 -0800 (PST) From: John Dyson Message-Id: <199704060229.SAA16599@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/i386 trap.c src/sys/miscfs/procfs procfs_mem.c src/sys/vm vm_fault.c vm_map.c vm_map.h vm_prot.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dyson 97/04/05 18:29:49 Modified: sys/i386/i386 trap.c sys/miscfs/procfs procfs_mem.c sys/vm vm_fault.c vm_map.c vm_map.h vm_prot.h Log: Fix the gdb executable modify problem. Thanks to the detective work by Alan Cox , and his description of the problem. The bug was primarily in procfs_mem, but the mistake likely happened due to the lack of vm system support for the operation. I added better support for selective marking of page dirty flags so that vm_map_pageable(wiring) will not cause this problem again. The code in procfs_mem is now less bogus (but maybe still a little so.) Revision Changes Path 1.89 +7 -7 src/sys/i386/i386/trap.c 1.24 +47 -80 src/sys/miscfs/procfs/procfs_mem.c 1.67 +11 -9 src/sys/vm/vm_fault.c 1.73 +11 -3 src/sys/vm/vm_map.c 1.25 +7 -4 src/sys/vm/vm_map.h 1.8 +2 -1 src/sys/vm/vm_prot.h