diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-02 19:25:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-02 19:25:52 +0000 |
commit | e31dcd201e98f9a12d0cc5d77da608f9b4635cd6 (patch) | |
tree | 784c5ca1894f2e930217e3c793b0d5bc3af026b4 /gdb | |
parent | b94c4f7d5f1d9205533b12731e8edd9ce373e2d0 (diff) | |
download | gdb-e31dcd201e98f9a12d0cc5d77da608f9b4635cd6.zip gdb-e31dcd201e98f9a12d0cc5d77da608f9b4635cd6.tar.gz gdb-e31dcd201e98f9a12d0cc5d77da608f9b4635cd6.tar.bz2 |
* s390-tdep.c (s390_regset_from_core_section): Allow excess section
size to enable bi-arch generate-core-file support.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/s390-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4eb0437..f86cadd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index a5b0de1..9deeabc 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -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; |