+/* NetBSD/alpha register sets. */
+
+static struct regset alphanbsd_gregset =
+{
+ NULL,
+ alphanbsd_supply_gregset
+};
+
+static struct regset alphanbsd_fpregset =
+{
+ NULL,
+ alphanbsd_supply_fpregset
+};
+
+static struct regset alphanbsd_aout_gregset =
+{
+ NULL,
+ alphanbsd_aout_supply_gregset
+};
+
+/* Return the appropriate register set for the core section identified
+ by SECT_NAME and SECT_SIZE. */
+
+const struct regset *
+alphanbsd_regset_from_core_section (struct gdbarch *gdbarch,
+ const char *sect_name, size_t sect_size)
+{
+ if (strcmp (sect_name, ".reg") == 0 && sect_size >= ALPHANBSD_SIZEOF_GREGS)
+ {
+ if (sect_size >= ALPHANBSD_SIZEOF_GREGS + ALPHANBSD_SIZEOF_FPREGS)
+ return &alphanbsd_aout_gregset;
+ else
+ return &alphanbsd_gregset;
+ }
+
+ if (strcmp (sect_name, ".reg2") == 0 && sect_size >= ALPHANBSD_SIZEOF_FPREGS)
+ return &alphanbsd_fpregset;
+
+ return NULL;
+}
+\f
+
+/* Signal trampolines. */
+