* exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack location

rather than the actual stack pointer.
This commit is contained in:
Christopher Faylor
2003-11-30 02:19:45 +00:00
parent f3a1e23eb3
commit b63ba3b6aa
5 changed files with 10 additions and 5 deletions

View File

@ -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;