freebsd-dev/gnu/usr.bin/binutils/gdb
Bruce Evans 9bb4a86cf0 Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally
0xefbfe000) and kernel_start (normally 0xf0100000).

Things are unnecessarily (?) difficult because procfs is used to
access user addresses in the live-kernel case although we must have
access to /dev/mem to work at all, and whatever works for the
dead-kernel case should work in all cases (modulo volatility of
live kernel variables).  We used the wrong range [0, kernel_start)
for user addresses.  Procfs should only work up to VM_MAXUSER_ADDRESS,
but it bogusly works for reads up to the address 2 pages higher
(the user area, including the kernel stack, is mapped to where the
user area used to be (WTUAUTB)).  Procfs can not work at all for
addresses between WTUAUTB and kernel_start.

Now we use procfs only to access addresses up to VM_MAXUSER_ADDRESS.
Higher addresses are translated normally using kvtophys(), so the
user ptd is used for addresses below the real kernel start (0xf0000000;
see INKERNEL()) and nothing is found WTUAUTB.

Strange accesses that cross the user-kernel boundary are now handled,
but such ranges are currently always errors because they necessarily
overlap the hole WTUAUTB.

Short reads are still not handled.
1998-01-19 15:27:56 +00:00
..
i386 Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally 1998-01-19 15:27:56 +00:00
config.h changes required in the gdb directory for making gdb 1997-01-15 22:37:09 +00:00
gdb.1 change kvm-fbsd.c so that kernel debugging works again. 1997-04-27 21:36:49 +00:00
kvm-fbsd.c Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally 1998-01-19 15:27:56 +00:00
Makefile Changes to support full make parallelism (-j<n>) in the world 1997-10-05 09:40:24 +00:00