From owner-freebsd-emulation Wed Sep 10 12:59:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA23214 for emulation-outgoing; Wed, 10 Sep 1997 12:59:13 -0700 (PDT) Received: from atlantis.ping.at (a013.static.Vienna.AT.EU.net [193.154.186.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA23206 for ; Wed, 10 Sep 1997 12:59:04 -0700 (PDT) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.ping.at (8.8.7/8.6.12) with SMTP id VAA00240; Wed, 10 Sep 1997 21:58:50 +0200 (MEST) Message-ID: <3416FBFA.41C67EA6@ping.at> Date: Wed, 10 Sep 1997 21:58:50 +0200 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Bruce Evans CC: emulation@freebsd.org Subject: Re: Doscmd, debugging with gdb References: <199709100440.OAA10269@godzilla.zeta.org.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: [snip] > Try this fix. > > diff -c2 vm_map.c~ vm_map.c > *** vm_map.c~ Mon Sep 1 18:00:38 1997 > --- vm_map.c Wed Sep 10 14:02:48 1997 > *************** > *** 2288,2292 **** > (entry->eflags & MAP_ENTRY_COW) == 0 || > (entry->wired_count != 0)) { > ! if ((fault_type & (prot)) != fault_type) > RETURN(KERN_PROTECTION_FAILURE); > } > --- 2288,2293 ---- > (entry->eflags & MAP_ENTRY_COW) == 0 || > (entry->wired_count != 0)) { > ! if ((fault_type & prot) != > ! (fault_type & ~VM_PROT_OVERRIDE_WRITE)) > RETURN(KERN_PROTECTION_FAILURE); > } > > Bruce Hello, I tried it and it works! Can trace into and attach to doscmd. Thank you! Helmut -- Helmut F. Wirth Email: hfwirth@ping.at