mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
@@ -107,7 +108,8 @@ void doit(void)
|
||||
|
||||
// prepare the who_points_at cmd we will run.
|
||||
// Do it here to avoid having ptr or its exterior ptr kept in a register.
|
||||
sprintf(who_points_at_cmd, "who_points_at %p 20", (char*)ptr - sizeof(void*));
|
||||
sprintf(who_points_at_cmd, "who_points_at %#" PRIxPTR " 20",
|
||||
(uintptr_t) (char*)ptr - sizeof(void*));
|
||||
|
||||
ptr2 = new MyClass[0]; // "interior but exterior ptr".
|
||||
// ptr2 points after the chunk, is wrongly considered by memcheck as definitely leaked.
|
||||
|
||||
Reference in New Issue
Block a user