aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-14 17:26:35 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-14 17:26:35 +0000
commitcd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577 (patch)
tree972c4c9384119417bd131068cddf58a69f768fd9 /gdb/infcmd.c
parentb9d26eb9b8ee2ef2eab0bad4b0d9ed98a5cc378f (diff)
downloadgdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.zip
gdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.tar.gz
gdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.tar.bz2
2004-02-14 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate. * gdbarch.h, gdbarch.c: Re-generate. * arch-utils.c (deprecated_register_convertible_not): Delete. * arch-utils.h (deprecated_register_convertible_not): Delete. * mi/mi-main.c (get_register): Update. Update copyright. * infcmd.c (default_print_registers_info): Update.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2de769e..6e74f4e 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1556,7 +1556,8 @@ default_print_registers_info (struct gdbarch *gdbarch,
The function frame_register_read() should have returned the
pre-cooked register so no conversion is necessary. */
/* Convert raw data to virtual format if necessary. */
- if (DEPRECATED_REGISTER_CONVERTIBLE (i))
+ if (DEPRECATED_REGISTER_CONVERTIBLE_P ()
+ && DEPRECATED_REGISTER_CONVERTIBLE (i))
{
DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (i, register_type (current_gdbarch, i),
raw_buffer, virtual_buffer);