freebsd-dev/sys/i386/include
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
..
pc
_inttypes.h
_limits.h
_stdint.h
_types.h
acpica_machdep.h
apicreg.h
apicvar.h
apm_bios.h
apm_segments.h
asm.h
asmacros.h
atomic.h Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove 2004-11-16 20:42:32 +00:00
bootinfo.h
bus_at386.h
bus_dma.h
bus_memio.h
bus_pc98.h
bus_pio.h
bus.h
clock.h
comstats.h
cpu.h Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove 2004-11-16 20:42:32 +00:00
cpufunc.h
cputypes.h
critical.h
cserial.h
db_machdep.h
elan_mmcr.h
elf.h
endian.h Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove 2004-11-16 20:42:32 +00:00
exec.h
float.h
floatingpoint.h
frame.h
gdb_machdep.h Change gdb_cpu_setreg() to not take the value to which to set the 2004-12-01 06:40:35 +00:00
i4b_cause.h
i4b_debug.h
i4b_ioctl.h
i4b_rbch_ioctl.h
i4b_tel_ioctl.h
i4b_trace.h
ieeefp.h
if_wl_wavelan.h
in_cksum.h
intr_machdep.h
ioctl_bt848.h
ioctl_meteor.h
iodev.h
kdb.h
legacyvar.h
limits.h
md_var.h
memdev.h
metadata.h
mp_watchdog.h
mptable.h
mtpr.h
mutex.h
npx.h
param.h Remove UAREA_PAGES. 2004-11-20 02:29:50 +00:00
pcaudioio.h
pcb_ext.h
pcb.h
pci_cfgreg.h
pcpu.h
pcvt_ioctl.h
pecoff_machdep.h
perfmon.h
pmap.h
privatespace.h
proc.h
profile.h
psl.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
segments.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smapi.h
smp.h
smptests.h
speaker.h
specialreg.h
stdarg.h
sysarch.h
trap.h
tss.h
ucontext.h
varargs.h
vm86.h
vmparam.h