aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.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/arch-utils.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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index f567a55..09fc52c 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -317,7 +317,8 @@ legacy_pc_in_sigtramp (CORE_ADDR pc, char *name)
int
legacy_convert_register_p (int regnum, struct type *type)
{
- return DEPRECATED_REGISTER_CONVERTIBLE (regnum);
+ return (DEPRECATED_REGISTER_CONVERTIBLE_P ()
+ && DEPRECATED_REGISTER_CONVERTIBLE (regnum));
}
void