]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the gdb executable modify problem. Thanks to the detective work
authorJohn Dyson <dyson@FreeBSD.org>
Sun, 6 Apr 1997 02:29:45 +0000 (02:29 +0000)
committerJohn Dyson <dyson@FreeBSD.org>
Sun, 6 Apr 1997 02:29:45 +0000 (02:29 +0000)
commita04c970a7aa272333bfa26014f64f461006db115
tree7f44b39c3ec4c8480e0c5bb681be805c35f38d39
parentef0e2ea4c70dd308948a5d2358210713ae1cf6fd
Fix the gdb executable modify problem.  Thanks to the detective work
by Alan Cox <alc@cs.rice.edu>, 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.)
sys/amd64/amd64/trap.c
sys/fs/procfs/procfs_mem.c
sys/i386/i386/trap.c
sys/kern/subr_trap.c
sys/miscfs/procfs/procfs_mem.c
sys/vm/vm_fault.c
sys/vm/vm_map.c
sys/vm/vm_map.h
sys/vm/vm_prot.h