aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-14 22:23:46 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-14 22:23:46 +0000
commit8e1f669a84a13c5fa7ac7f03aa2c43c0f14cb711 (patch)
treefcabe75a2f3ab6313efabde883f68bade07f9986 /gdb/findvar.c
parentcd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577 (diff)
downloadgdb-8e1f669a84a13c5fa7ac7f03aa2c43c0f14cb711.zip
gdb-8e1f669a84a13c5fa7ac7f03aa2c43c0f14cb711.tar.gz
gdb-8e1f669a84a13c5fa7ac7f03aa2c43c0f14cb711.tar.bz2
2004-02-14 Andrew Cagney <cagney@redhat.com>
* arch-utils.c (legacy_convert_register_p): Check DEPRECATED_REGISTER_CONVERTIBLE_P. * findvar.c (value_of_register): Ditto.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index b5929fa..e737bc3 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -284,7 +284,8 @@ value_of_register (int regnum, struct frame_info *frame)
/* Convert raw data to virtual format if necessary. */
- if (DEPRECATED_REGISTER_CONVERTIBLE (regnum))
+ if (DEPRECATED_REGISTER_CONVERTIBLE_P ()
+ && DEPRECATED_REGISTER_CONVERTIBLE (regnum))
{
DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, register_type (current_gdbarch, regnum),
raw_buffer, VALUE_CONTENTS_RAW (reg_val));