diff options
author | Christopher Faylor <me@cgf.cx> | 2003-11-30 02:19:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-11-30 02:19:45 +0000 |
commit | b63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f (patch) | |
tree | 5f2a16b204aa3c865a74b3770aa0cb8e185323fb /winsup/cygwin/exceptions.cc | |
parent | f3a1e23eb385bdf9dd71676aebb9b64cf617ec7a (diff) | |
download | newlib-b63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f.zip newlib-b63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f.tar.gz newlib-b63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f.tar.bz2 |
* 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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index ef2bf22..6e5aa30 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; |