Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-30 05:19:45 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-30 05:19:45 +0300
commitb63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f (patch)
tree5f2a16b204aa3c865a74b3770aa0cb8e185323fb /winsup/cygwin/exceptions.cc
parentf3a1e23eb385bdf9dd71676aebb9b64cf617ec7a (diff)
* exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack location
rather than the actual stack pointer.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
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;