From owner-cvs-gnu Mon Jan 19 06:39:24 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02093 for cvs-gnu-outgoing; Mon, 19 Jan 1998 06:39:24 -0800 (PST) (envelope-from owner-cvs-gnu) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02000; Mon, 19 Jan 1998 06:38:30 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA29249; Mon, 19 Jan 1998 06:27:42 -0800 (PST) Date: Mon, 19 Jan 1998 06:27:42 -0800 (PST) Message-Id: <199801191427.GAA29249@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-gnu@FreeBSD.ORG Subject: cvs commit: src/gnu/usr.bin/gdb/gdb kvm-fbsd.c Sender: owner-cvs-gnu@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/19 06:27:42 PST Modified files: gnu/usr.bin/gdb/gdb kvm-fbsd.c Log: Removed `kstack' and associated mistranslations in kvtophys(). Correct translations would have been null. However, kstack was the top of the kernel stack instead of the base of the kernel stack like it was when the kernel exported it, so the area above the kernel stack was mistranslated and the kernel stack was not translated. This bug was depended on to compensate for the wrong value of kstack - to read the pcb, instead of just using the address of the pcb, we used the mistranslated address of kstack, which happened to be the same (curpcb = kstack - 0x2000). This area is simpler than it used to be now that the kernel stack address is per-process. The code still seems to be more complicated than necessary - the `found_pcb == 0' case seems to be unused. Revision Changes Path 1.11 +1 -18 src/gnu/usr.bin/gdb/gdb/kvm-fbsd.c