freebsd-dev/sys/sparc64
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
..
central - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
compile
conf Add a front-end for the `rtc' device which is a MC146818 compatible 2004-11-17 16:41:42 +00:00
creator - Add missing <sys/module.h>. [1] 2004-07-09 23:12:22 +00:00
ebus Device driver for onboard CS4231 audio controller which is found 2004-10-25 10:29:57 +00:00
fhc - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +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 o sparc64/isa/isa.c: 2004-11-17 14:44:10 +00:00
pci Correct some uses of the wrong members of the *min()/*max()-familiy, e.g. 2004-08-15 21:37:52 +00:00
sbus Fix paths after repocopies done by scottl 2004-11-10 14:09:52 +00:00
sparc64 Change gdb_cpu_setreg() to not take the value to which to set the 2004-12-01 06:40:35 +00:00