binutils-gdb/gdb/config
Eli Zaretskii 52b9821179 Unified support for hardware breakpoints and watchpoints on
x86 targets:

	* config/i386/nm-i386.h: New file.

	* config/i386/nm-i386.h: (i386_cleanup_dregs)
	(i386_insert_watchpoint, i386_remove_watchpoint)
	(i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
	(i386_stopped_data_address, i386_insert_hw_breakpoint)
	(i386_remove_hw_breakpoint): Declare prototypes.
	[I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
	Define if not already defined.
	(TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
	(STOPPED_BY_WATCHPOINT, target_stopped_data_address)
	(target_insert_watchpoint, target_remove_watchpoint)
	(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
	to call the appropriate i386_* functions.

	* i386-nat.c: New file.

	* i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
	(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
	(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
	(dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
	(maint_show_dr): New variables.
	(i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
	(i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
	(i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
	(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
	(i386_stopped_data_address, i386_stopped_by_hwbp)
	(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
	functions.
	(_initialize_i386_nat): New function.
	[I386_USE_GENERIC_WATCHPOINTS]: Add new	maint command
	`show-debug-regs', sets maint_show_dr to non-zero value and
	activates debugging print-outs in functions which insert, remove,
	and test watchpoints and hardware breakpoints.

	* Makefile.in (i386-nat.o): New target.
	(ALLDEPFILES): Add i386-nat.o.
2001-03-21 11:36:58 +00:00
..
a29k Include regcache.h 2001-03-14 23:23:16 +00:00
alpha Update Linux/Alpha port to use new Linux threads support. 2001-03-20 21:40:47 +00:00
arc Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
arm Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
d10v Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
d30v Include regcache.h 2001-03-14 23:23:16 +00:00
djgpp Add entry of ia64-aix-nat.c. 2001-03-14 18:21:04 +00:00
fr30 Include regcache.h 2001-03-14 23:23:16 +00:00
h8300 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use 2001-03-16 22:34:46 +00:00
h8500 Include regcache.h 2001-03-14 23:23:16 +00:00
i386 Unified support for hardware breakpoints and watchpoints on 2001-03-21 11:36:58 +00:00
i960 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
ia64 Add proc-service.o to NATDEPFILES. 2001-03-20 00:05:04 +00:00
m32r Include regcache.h 2001-03-14 23:23:16 +00:00
m68hc11 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>: 2000-07-27 07:18:32 +00:00
m68k Include regcache.h 2001-03-14 23:23:16 +00:00
m88k Include regcache.h 2001-03-14 23:23:16 +00:00
mcore Include regcache.h 2001-03-14 23:23:16 +00:00
mips Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
mn10200 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
mn10300 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
none Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
ns32k Include regcache.h 2001-03-14 23:23:16 +00:00
pa Move realoc() decl to utils.c. s/realloc()/xrealloc()/. 2001-03-20 00:54:43 +00:00
powerpc Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
romp import gdb-1999-07-07 post reformat 1999-07-07 20:19:36 +00:00
rs6000 Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
sh Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
sparc Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P(). 2001-03-20 18:16:28 +00:00
tic80 Include regcache.h 2001-03-14 23:23:16 +00:00
v850 Include regcache.h 2001-03-14 23:23:16 +00:00
vax Include regcache.h 2001-03-14 23:23:16 +00:00
w65 Include regcache.h 2001-03-14 23:23:16 +00:00
z8k Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
nm-gnu.h Include regcache.h 2001-03-14 23:23:16 +00:00
nm-linux.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
nm-lynx.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
nm-m3.h Include regcache.h 2001-03-14 23:23:16 +00:00
nm-nbsd.h import gdb-1999-12-13 snapshot 1999-12-14 01:06:04 +00:00
nm-sysv4.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
tm-linux.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
tm-lynx.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
tm-nbsd.h 2000-03-21 J.T. Conklin <jtc@redback.com> 2000-03-22 01:36:31 +00:00
tm-sunos.h import gdb-1999-07-07 post reformat 1999-07-07 20:19:36 +00:00
tm-sysv4.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
tm-vxworks.h import gdb-1999-07-07 post reformat 1999-07-07 20:19:36 +00:00
xm-aix4.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
xm-lynx.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
xm-mpw.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
xm-nbsd.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
xm-sysv4.h Update/correct copyright notices. 2001-03-06 08:22:02 +00:00