]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break signal frame delivery on ppc64 following recent Memcheck
authorJulian Seward <jseward@acm.org>
Tue, 6 May 2008 18:14:27 +0000 (18:14 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 6 May 2008 18:14:27 +0000 (18:14 +0000)
origin tracking changes.  This is believed to fix #161628.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8011

coregrind/m_sigframe/sigframe-ppc64-linux.c

index 200b0d43cc4e4a97e05c9b69f2c2ab9d72ed9a15..bf99e318bfc1bb4c153190212adcab3901e4237a 100644 (file)
@@ -95,8 +95,9 @@
 /* Structure containing bits of information that we want to save
    on signal delivery. */
 struct vg_sig_private {
-   UInt magicPI;
-   UInt sigNo_private;
+   UInt  magicPI;
+   UInt  sigNo_private;
+   ULong _unused; /* makes the struct size be zero % 16 */
    VexGuestPPC64State vex_shadow1;
    VexGuestPPC64State vex_shadow2;
 };
@@ -190,6 +191,7 @@ void VG_(sigframe_create)( ThreadId tid,
    struct rt_sigframe* frame;
 
    /* Stack must be 16-byte aligned */
+   vg_assert(VG_IS_16_ALIGNED(sizeof(struct vg_sig_private)));
    vg_assert(VG_IS_16_ALIGNED(sizeof(struct rt_sigframe)));
 
    sp_top_of_frame &= ~0xf;