only go down to the start of the mmaped segment. */
seg = VG_(find_segment)((Addr)rsp);
if (seg) {
- ctst->client_stack_base = seg->addr;
ctst->client_stack_highest_word = (Addr)PGROUNDUP(rsp);
- ctst->client_stack_szB = ctst->client_stack_highest_word
- - ctst->client_stack_base;
+ ctst->client_stack_szB = ctst->client_stack_highest_word - seg->addr;
if (debug)
VG_(printf)("tid %d: guessed client stack range %p-%p\n",
} else {
VG_(message)(Vg_UserMsg, "!? New thread %d starts with RSP(%p) unmapped\n",
ctid, rsp);
- ctst->client_stack_base = 0;
ctst->client_stack_szB = 0;
}