* s390-tdep.c (s390_regset_from_core_section): Allow excess section

size to enable bi-arch generate-core-file support.
This commit is contained in:
Ulrich Weigand 2007-10-02 19:25:52 +00:00
parent b94c4f7d5f
commit e31dcd201e
2 changed files with 7 additions and 2 deletions

View file

@ -425,10 +425,10 @@ s390_regset_from_core_section (struct gdbarch *gdbarch,
{
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;