NetBSD/sys/arch/i386/include
kamil 241cf91ddc Add support for hardware assisted watchpoints/breakpoints API in ptrace(2)
Add new ptrace(2) calls:
 - PT_COUNT_WATCHPOINTS - count the number of available hardware watchpoints
 - PT_READ_WATCHPOINT   - read struct ptrace_watchpoint from the kernel state
 - PT_WRITE_WATCHPOINT  - write new struct ptrace_watchpoint state, this
                          includes enabling and disabling watchpoints

The ptrace_watchpoint structure contains MI and MD parts:

typedef struct ptrace_watchpoint {
	int		pw_index;	/* HW Watchpoint ID (count from 0) */
	lwpid_t		pw_lwpid;	/* LWP described */
	struct mdpw	pw_md;		/* MD fields */
} ptrace_watchpoint_t;

For example amd64 defines MD as follows:
struct mdpw {
	void	*md_address;
	int	 md_condition;
	int	 md_length;
};

These calls are protected with the __HAVE_PTRACE_WATCHPOINTS guard.

Tested on amd64, initial support added for i386 and XEN.

Sponsored by <The NetBSD Foundation>
2016-12-15 12:04:17 +00:00
..
acpi_machdep.h
ansi.h
aout_machdep.h
apicvar.h
apmvar.h
asm.h
autoconf.h
bios32.h
bioscall.h
bootinfo.h
bswap.h
bus_defs.h
bus_funcs.h
bus_private.h
byte_swap.h
cdefs.h
clock.h
coff_machdep.h
cpu_counter.h
cpu_rng.h
cpu.h
cpufunc.h
cputypes.h
cpuvar.h
db_machdep.h
disklabel.h
eisa_machdep.h
elf_machdep.h
endian_machdep.h
endian.h
fenv.h
float.h
frame.h
frameasm.h
freebsd_machdep.h
gdt.h Localify. 2016-08-20 16:05:48 +00:00
i8259.h
i82093reg.h Move the virtual address of the LAPIC page out of the data segment on amd64 2016-11-25 14:12:55 +00:00
i82093var.h
i82489reg.h
i82489var.h
ibcs2_machdep.h
ieee.h
ieeefp.h
int_const.h
int_fmtio.h
int_limits.h
int_mwgwtypes.h
int_types.h
intr.h
intrdefs.h
ipkdb.h
isa_machdep.h
isapnp_machdep.h
joystick.h
kcore.h
limits.h
loadfile_machdep.h
lock.h
mach_machdep.h
Makefile
Makefile.inc
math.h
mca_machdep.h
mcontext.h
mpacpi.h
mpbiosreg.h
mpbiosvar.h
mpconfig.h
mtrr.h
multiboot.h
mutex.h
param.h The 64MB was intended. 2016-08-26 05:56:03 +00:00
pcb.h
pci_machdep.h
pic.h
pio.h
pmap.h move function prototype to x86, so it is available to amd64 too 2016-09-19 20:46:55 +00:00
pmc.h
proc.h Add support for hardware assisted watchpoints/breakpoints API in ptrace(2) 2016-12-15 12:04:17 +00:00
profile.h
psl.h
pte.h
ptrace.h Add support for hardware assisted watchpoints/breakpoints API in ptrace(2) 2016-12-15 12:04:17 +00:00
rbus_machdep.h
reg.h
return.h
rwlock.h
segments.h KNF, and give the structure sizes. 2016-09-02 08:28:06 +00:00
setjmp.h
signal.h
sljit_machdep.h
specialreg.h
spkr.h
svr4_machdep.h
sysarch.h
tlog.h
trap.h
tss.h
types.h
userret.h Add support for hardware assisted watchpoints/breakpoints API in ptrace(2) 2016-12-15 12:04:17 +00:00
vm86.h
vmparam.h Put a one-page redzone between userland and the PTE space on amd64 and 2016-11-19 09:22:03 +00:00
wchar_limits.h