diff options
author | Gary Benson <gbenson@redhat.com> | 2014-09-11 11:19:56 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-09-11 11:19:56 +0100 |
commit | c5e92cca56da9153985d4c15dab243e383f66919 (patch) | |
tree | 92e704193346474629577b55d7ff0b80167df4f0 /gdb/x86-nat.c | |
parent | 3adc1a7d457d7fcdc413b970f1ed02b0925e6da8 (diff) | |
download | gdb-c5e92cca56da9153985d4c15dab243e383f66919.zip gdb-c5e92cca56da9153985d4c15dab243e383f66919.tar.gz gdb-c5e92cca56da9153985d4c15dab243e383f66919.tar.bz2 |
Introduce show_debug_regs
This commit adds a new global flag show_debug_regs to common-debug.h
to replace the flag debug_hw_points used by gdbserver and by the
Linux x86 and AArch64 ports, and to replace the flag maint_show_dr
used by the Linux MIPS port.
Note that some debug printing in the AArch64 port was enabled only if
debug_hw_points > 1 but no way to set debug_hw_points to values other
than 0 and 1 was provided; that code was effectively dead. This
commit enables all debug printing if show_debug_regs is nonzero, so
the AArch64 output will be more verbose than previously.
gdb/ChangeLog:
* common/common-debug.h (show_debug_regs): Declare.
* common/common-debug.c (show_debug_regs): Define.
* aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
all uses with show_debug_regs. Replace all uses that considered
debug_hw_points as a multi-value integer with straight boolean
uses.
* x86-nat.c (debug_hw_points): Don't define. Replace all uses
with show_debug_regs.
* nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
all uses with show_debug_regs.
* mips-linux-nat.c (maint_show_dr): Don't define. Replace all
uses with show_debug_regs.
gdb/gdbserver/ChangeLog:
* server.h (debug_hw_points): Don't declare.
* server.c (debug_hw_points): Don't define. Replace all uses
with show_debug_regs.
* linux-aarch64-low.c (debug_hw_points): Don't define. Replace
all uses with show_debug_regs.
Diffstat (limited to 'gdb/x86-nat.c')
-rw-r--r-- | gdb/x86-nat.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/x86-nat.c b/gdb/x86-nat.c index 6a0ca4b..a016e60 100644 --- a/gdb/x86-nat.c +++ b/gdb/x86-nat.c @@ -33,9 +33,6 @@ The functions below implement debug registers sharing by reference counts, and allow to watch regions up to 16 bytes long. */ -/* Whether or not to print the mirrored debug registers. */ -int debug_hw_points; - /* Low-level function vector. */ struct x86_dr_low_type x86_dr_low; @@ -272,7 +269,7 @@ add_show_debug_regs_command (void) /* A maintenance command to enable printing the internal DRi mirror variables. */ add_setshow_boolean_cmd ("show-debug-regs", class_maintenance, - &debug_hw_points, _("\ + &show_debug_regs, _("\ Set whether to show variables that mirror the x86 debug registers."), _("\ Show whether to show variables that mirror the x86 debug registers."), _("\ Use \"on\" to enable, \"off\" to disable.\n\ |