aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-11 16:00:57 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-11 16:00:57 +0000
commite6f181f51f4669326db91cb028fb3088841f297c (patch)
tree6ea90625be5429a256d9e326d428c83c64cc77b2 /gdb
parent98199d8f1c5058369d5ece2444573ce92dc3b7c7 (diff)
downloadgdb-e6f181f51f4669326db91cb028fb3088841f297c.zip
gdb-e6f181f51f4669326db91cb028fb3088841f297c.tar.gz
gdb-e6f181f51f4669326db91cb028fb3088841f297c.tar.bz2
2002-11-11 Andrew Cagney <ac131313@redhat.com>
* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's i386_fp_regnum_p.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/x86-64-tdep.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f054724..bd12e11 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-11 Andrew Cagney <ac131313@redhat.com>
+
+ * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
+ i386_fp_regnum_p.
+
2002-11-10 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct main_type): Move artificial flag out of
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index d3ecb2b..e307ae5 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -175,6 +175,15 @@ x86_64_register_virtual_type (int regno)
return *x86_64_register_info_table[regno].type;
}
+/* FIXME: cagney/2002-11-11: Once the i386 and x86-64 targets are
+ merged, this function can go away. */
+int
+i386_fp_regnum_p (int regnum)
+{
+ return (regnum < NUM_REGS
+ && (FP0_REGNUM && FP0_REGNUM <= (regnum) && (regnum) < FPC_REGNUM));
+}
+
/* x86_64_register_convertible is true if register N's virtual format is
different from its raw format. Note that this definition assumes
that the host supports IEEE 32-bit floats, since it doesn't say