binutils-gdb/gdb/nat
Gary Benson 97ea6506c4 x86 debug address register clarifications
The loop macro ALL_DEBUG_REGISTERS does not iterate over the status or
control registers, so its name is misleading.  This commit renames it
as ALL_DEBUG_ADDRESS_REGISTERS and updates all uses.  This commit also
updates its loop conditions to an equivalent but better form, and
makes two functions use it that had previously hardwired the loop.
A comment on a related field in the x86_debug_reg_state structure is
also updated to reflect that the field refers specifically to address
registers only.

gdb/ChangeLog:

	* nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
	(ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
	Loop conditions	changed to equivalent form.
	(struct x86_debug_reg_state): Updated dr_ref_count comment.
	* x86-linux-nat.c (x86_linux_prepare_to_resume): Use
	ALL_DEBUG_ADDRESS_REGISTERS.

gdb/gdbserver/ChangeLog:

	* linux-x86-low.c (x86_linux_prepare_to_resume): Use
	ALL_DEBUG_ADDRESS_REGISTERS.
2014-09-03 12:40:49 +01:00
..
gdb_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
glibc_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
linux-btrace.h Move ptid.h to common-defs.h 2014-08-07 09:06:44 +01:00
linux-nat.h
linux-osdata.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-osdata.h Move ptid.h to common-defs.h 2014-08-07 09:06:44 +01:00
linux-procfs.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-procfs.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-ptrace.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-ptrace.h Remove some GDBSERVER checks from linux-ptrace 2014-07-24 15:06:39 +01:00
linux-waitpid.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-waitpid.h Move linux-nat.c:status_to_str to nat/linux-waitpid.c. 2014-02-27 14:30:08 +00:00
mips-linux-watch.c Include gdb_assert.h in common-defs.h 2014-08-07 09:06:45 +01:00
mips-linux-watch.h Do not include defs.h or server.h in any header file 2014-07-31 13:25:01 +01:00
x86-cpuid.h Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
x86-dregs.c x86 debug address register clarifications 2014-09-03 12:40:49 +01:00
x86-dregs.h x86 debug address register clarifications 2014-09-03 12:40:49 +01:00
x86-gcc-cpuid.h Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00