* s390-tdep.c (s390_regset_from_core_section): Allow excess section
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 2 Oct 2007 19:25:52 +0000 (19:25 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 2 Oct 2007 19:25:52 +0000 (19:25 +0000)
size to enable bi-arch generate-core-file support.

gdb/ChangeLog
gdb/s390-tdep.c

index 4eb04379f93d8d858d270ce446d4a70899e9689b..f86cadd8ad91e7daca54d1c84b71fa86932b7293 100644 (file)
@@ -1,3 +1,8 @@
+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.
index a5b0de18b8eb55f6cc0048df41742173aadab010..9deeabc2b8232f6c410af06839a7d6cd2251784e 100644 (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;
This page took 0.0316 seconds and 4 git commands to generate.