]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed references to client_stack_base which no longer exists.
authorTom Hughes <tom@compton.nu>
Mon, 4 Apr 2005 07:15:04 +0000 (07:15 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 4 Apr 2005 07:15:04 +0000 (07:15 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3519

coregrind/amd64-linux/syscalls.c

index c9d39e8cbff4482ad9bd041055f09c2fccc7ce8b..21dda51c14b1a7bd83f16599aa29d38500bd8d4b 100644 (file)
@@ -364,10 +364,8 @@ static Int do_clone(ThreadId ptid,
       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",
@@ -375,7 +373,6 @@ static Int do_clone(ThreadId ptid,
    } 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;
    }