From b63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 30 Nov 2003 02:19:45 +0000 Subject: * exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack location rather than the actual stack pointer. --- winsup/cygwin/exceptions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index ef2bf2270..6e5aa3059 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -189,8 +189,8 @@ _threadinfo::pop () assert (stackptr > stack); #endif __stack_t res = *--stackptr; -#ifndef DEBUGGING - _my_tls.stackptr = 0; +#ifdef DEBUGGING + *stackptr = 0; debug_printf ("popped %p, stack %p, stackptr %p", res, stack, stackptr); #endif return res; -- cgit v1.2.3