]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
vg_push_signal_frame: make the siginfo and ucontext fields readable too.
authorJulian Seward <jseward@acm.org>
Tue, 25 Jun 2002 23:18:16 +0000 (23:18 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 25 Jun 2002 23:18:16 +0000 (23:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@464

coregrind/vg_signals.c
vg_signals.c

index 439ed4c94f3c8912686267b71b18ae22f80dd20e..00818738f77b52daa91ad44ab885562494816114 100644 (file)
@@ -974,10 +974,13 @@ void vg_push_signal_frame ( ThreadId tid, int sigNo )
    /* This thread needs to be marked runnable, but we leave that the
       caller to do. */
 
-   /* Make sigNo and retaddr fields readable -- at 0(%ESP) and 4(%ESP) */
+   /* Make retaddr, sigNo, psigInfo, puContext fields readable -- at
+      0(%ESP) .. 12(%ESP) */
    if (VG_(clo_instrument)) {
-      VGM_(make_readable) ( ((Addr)esp)+0 ,4 );
-      VGM_(make_readable) ( ((Addr)esp)+4 ,4 );
+      VGM_(make_readable) ( ((Addr)esp)+0,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+4,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+8,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+12, 4 );
    }
 
    /* 
index 439ed4c94f3c8912686267b71b18ae22f80dd20e..00818738f77b52daa91ad44ab885562494816114 100644 (file)
@@ -974,10 +974,13 @@ void vg_push_signal_frame ( ThreadId tid, int sigNo )
    /* This thread needs to be marked runnable, but we leave that the
       caller to do. */
 
-   /* Make sigNo and retaddr fields readable -- at 0(%ESP) and 4(%ESP) */
+   /* Make retaddr, sigNo, psigInfo, puContext fields readable -- at
+      0(%ESP) .. 12(%ESP) */
    if (VG_(clo_instrument)) {
-      VGM_(make_readable) ( ((Addr)esp)+0 ,4 );
-      VGM_(make_readable) ( ((Addr)esp)+4 ,4 );
+      VGM_(make_readable) ( ((Addr)esp)+0,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+4,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+8,  4 );
+      VGM_(make_readable) ( ((Addr)esp)+12, 4 );
    }
 
    /*