freebsd-dev/sys/i386
Marcel Moolenaar bcc5241c43 Change gdb_cpu_setreg() to not take the value to which to set the
specified register, but a pointer to the in-memory representation of
that value. The reason for this is twofold:
1. Not all registers can be represented by a register_t. In particular
   FP registers fall in that category. Passing the new register value
   by reference instead of by value makes this point moot.
2. When we receive a G or P packet, both are for writing a register,
   the packet will have the register value in target-byte order and
   in the memory representation (modulo the fact that bytes are sent
   as 2 printable hexadecimal numbers of course). We only need to
   decode the packet to have a pointer to the register value.

This change fixes the bug of extracting the register value of the P
packet as a hexadecimal number instead of as a bit array. The quick
(and dirty) fix to bswap the register value in gdb_cpu_setreg() as
it has been added on i386 and amd64 can therefore be removed and has
in fact been that.

Tested on: alpha, amd64, i386, ia64, sparc64
2004-12-01 06:40:35 +00:00
..
acpica After discussions with Nate, repo copy the acpi assist drivers from 2004-11-15 05:54:15 +00:00
bios Remove local hacks to set flags now that the device probe does this for us. 2004-10-14 22:21:59 +00:00
compile
conf Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove 2004-11-16 20:42:32 +00:00
cpufreq o Fix whitespace bug introduced in the previous commit. 2004-08-23 10:09:29 +00:00
i386 Change gdb_cpu_setreg() to not take the value to which to set the 2004-12-01 06:40:35 +00:00
ibcs2 Add missing zero flag arguments to sysctl calls. 2004-10-12 07:58:13 +00:00
include Change gdb_cpu_setreg() to not take the value to which to set the 2004-12-01 06:40:35 +00:00
isa Don't include sys/user.h merely for its side-effect of recursively 2004-11-27 06:51:39 +00:00
linux Axe the semblance of support for PECOFF and Linux a.out core dumps. 2004-11-27 06:46:45 +00:00
pci Add TUNABLE_LONG and TUNABLE_ULONG, and use the latter for the 2004-10-31 15:50:33 +00:00
svr4 Attempt to make the proper changes here for the proc.h commit: 2004-01-05 00:29:00 +00:00
Makefile