]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
authorRobert Walsh <rjwalsh@valgrind.org>
Mon, 23 Aug 2004 18:13:16 +0000 (18:13 +0000)
committerRobert Walsh <rjwalsh@valgrind.org>
Mon, 23 Aug 2004 18:13:16 +0000 (18:13 +0000)
NOT allow Valgrind to work with 64-bit executables - only with 32-bit
executables on an AMD64 box.

VG_(valgrind_end) now has a slightly different meaning to all the other
VG_(*_end) vars -- ie. it names the last byte, whereas the others go
one byte past the end.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2606

coregrind/vg_main.c

index ab374da9091dfaa628bb7dd967b4e5a1b50e8eb0..10d50d11b05ccad999ecef2e43c672bb86ad08ae 100644 (file)
@@ -432,7 +432,7 @@ static void layout_remaining_space(Addr argc_addr, float ratio)
    addr_t client_size, shadow_size;
 
    VG_(valgrind_base)  = (addr_t)&kickstart_base;
-   VG_(valgrind_end)   = ROUNDUP(argc_addr, 0x10000); // stack
+   VG_(valgrind_end)   = ROUNDUP(argc_addr, 0x10000) - 1; // stack
 
    // This gives the client the largest possible address space while
    // taking into account the tool's shadow needs.