aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-04 18:50:26 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-04 18:50:26 +0000
commitf0f63663f019d9a3a82e078c830ae806d60ddb1e (patch)
treeeb91f770dfbc9d9c5ad91fa2b18435682cce3c2c
parent8bf659e8f6f3cd9041872b77334812bc176bd2e7 (diff)
downloadgdb-f0f63663f019d9a3a82e078c830ae806d60ddb1e.zip
gdb-f0f63663f019d9a3a82e078c830ae806d60ddb1e.tar.gz
gdb-f0f63663f019d9a3a82e078c830ae806d60ddb1e.tar.bz2
2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Committed by Andrew Cagney. * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for alignment padding when accessing ucontext struct members.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/s390-tdep.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1a403ec..cf38d5d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ Committed by Andrew Cagney.
+ * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
+ alignment padding when accessing ucontext struct members.
+
2004-05-04 Jim Blandy <jimb@redhat.com>
* config/ppc-tdep.h (struct gdbarch_tdep): Delete
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index 6a5cd50..3bad26b 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -2153,7 +2153,7 @@ s390_sigtramp_frame_unwind_cache (struct frame_info *next_frame,
ucontext (contains sigregs at offset 5 words) */
if (next_ra == next_cfa)
{
- sigreg_ptr = next_cfa + 8 + 128 + 5*word_size;
+ sigreg_ptr = next_cfa + 8 + 128 + align_up (5*word_size, 8);
}
/* Old-style RT frame and all non-RT frames: