From: Julian Seward Date: Wed, 29 May 2002 16:48:44 +0000 (+0000) Subject: Set client mem permissions in do__cleanup_pop. X-Git-Tag: svn/VALGRIND_1_0_3~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67ab14bf756f913602a2cc525d7b88baae6468d;p=thirdparty%2Fvalgrind.git Set client mem permissions in do__cleanup_pop. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@332 --- diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index af091eca42..c631456481 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -1733,6 +1733,8 @@ void do__cleanup_pop ( ThreadId tid, CleanupEntry* cu ) } sp--; *cu = VG_(threads)[tid].custack[sp]; + if (VG_(clo_instrument)) + VGM_(make_readable)( (Addr)cu, sizeof(CleanupEntry) ); VG_(threads)[tid].custack_used = sp; SET_EDX(tid, 0); } diff --git a/vg_scheduler.c b/vg_scheduler.c index af091eca42..c631456481 100644 --- a/vg_scheduler.c +++ b/vg_scheduler.c @@ -1733,6 +1733,8 @@ void do__cleanup_pop ( ThreadId tid, CleanupEntry* cu ) } sp--; *cu = VG_(threads)[tid].custack[sp]; + if (VG_(clo_instrument)) + VGM_(make_readable)( (Addr)cu, sizeof(CleanupEntry) ); VG_(threads)[tid].custack_used = sp; SET_EDX(tid, 0); }