mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
When running Valgrind under Valgrind, the VEX memory allocation (temporary or permanent) was not checked, as there was no inner request. This patch changes VEX to mark the temporary and permanent allocations with redzone, and memory is marked unaddressable when the VEX temporary pool is cleared. The changes are: * add a file libvex_inner.h which mostly takes over what was in pub_core_inner.h (which now just includes libvex_inner.h) * modify main_util.h and main_util.c to mark the temporary and permanent pool with memcheck pool requests to indicate when a block is allocated or freed. * Impact is (should be) none, unless Valgrind is configured as an inner. * Outer memcheck/inner regression tests run on gcc20 (amd64). Nothing (more worrying than the 3.13 self hosting) detected git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16462
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
|
|
/*--------------------------------------------------------------------*/
|
|
/*--- Utilities for inner Valgrind pub_core_inner.h ---*/
|
|
/*--------------------------------------------------------------------*/
|
|
|
|
/*
|
|
This file is part of Valgrind, a dynamic binary instrumentation
|
|
framework.
|
|
|
|
Copyright (C) 2012-2017 Philippe Waroquiers
|
|
philippe.waroquiers@skynet.be
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
02111-1307, USA.
|
|
|
|
The GNU General Public License is contained in the file COPYING.
|
|
*/
|
|
|
|
#ifndef __PUB_CORE_INNER_H
|
|
#define __PUB_CORE_INNER_H
|
|
|
|
// For usage and purpose, see libvex_inner.h
|
|
#include "libvex_inner.h"
|
|
|
|
#endif // __PUB_CORE_INNER_H
|
|
|
|
/*--------------------------------------------------------------------*/
|
|
/*--- end ---*/
|
|
/*--------------------------------------------------------------------*/
|