size to enable bi-arch generate-core-file support.
+2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * s390-tdep.c (s390_regset_from_core_section): Allow excess section
+ size to enable bi-arch generate-core-file support.
+
2007-10-02 Markus Deuling <deuling@de.ibm.com>
* spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- if (strcmp (sect_name, ".reg") == 0 && sect_size == tdep->sizeof_gregset)
+ if (strcmp (sect_name, ".reg") == 0 && sect_size >= tdep->sizeof_gregset)
return tdep->gregset;
- if (strcmp (sect_name, ".reg2") == 0 && sect_size == tdep->sizeof_fpregset)
+ if (strcmp (sect_name, ".reg2") == 0 && sect_size >= tdep->sizeof_fpregset)
return tdep->fpregset;
return NULL;