Handle ARM VFP register names.
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 21b8c73..c764f9e 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,5 +1,7 @@
 2009-04-16  Roland McGrath  <roland@redhat.com>
 
+	* arm_regs.c (arm_register_info): Handle VFP registers.
+
 	* i386_corenote.c (EXTRA_NOTES): NT_PRXFPREG -> NT_PRXFPREG
 
 2009-04-14  Roland McGrath  <roland@redhat.com>
diff --git a/backends/arm_regs.c b/backends/arm_regs.c
index b7351ce..0a9536d 100644
--- a/backends/arm_regs.c
+++ b/backends/arm_regs.c
@@ -40,9 +40,9 @@
 		   int *bits, int *type)
 {
   if (name == NULL)
-    return 129;
+    return 320;
 
-  if (regno < 0 || regno > 128 || namelen < 5)
+  if (regno < 0 || regno > 320 || namelen < 5)
     return -1;
 
   *prefix = NULL;
@@ -88,6 +88,25 @@
       *type = DW_ATE_unsigned;
       return stpcpy (name, "spsr") + 1 - name;
 
+    case 256 + 0 ... 256 + 9:
+      *setname = "VFP";
+      *type = DW_ATE_float;
+      *bits = 64;
+      name[0] = 'd';
+      name[1] = regno - 256 + '0';
+      namelen = 2;
+      break;
+
+    case 256 + 10 ... 256 + 31:
+      *setname = "VFP";
+      *type = DW_ATE_float;
+      *bits = 64;
+      name[0] = 'd';
+      name[1] = (regno - 256) / 10 + '0';
+      name[2] = (regno - 256) % 10 + '0';
+      namelen = 3;
+      break;
+
     default:
       *setname = NULL;
       return 0;