Date: Mon, 19 Jan 1998 06:27:42 -0800 (PST) From: Bruce Evans <bde@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 Message-ID: <199801191427.GAA29249@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801191427.GAA29249>