]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Misc hacks to get Addrcheck working.
authorJulian Seward <jseward@acm.org>
Thu, 28 Oct 2004 22:16:49 +0000 (22:16 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 28 Oct 2004 22:16:49 +0000 (22:16 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@450

VEX/head20041019/coregrind/core.h
VEX/head20041019/coregrind/toolfuncs.def
VEX/head20041019/coregrind/valgrind.vs
VEX/head20041019/coregrind/vg_memory.c
VEX/head20041019/include/tool.h.base

index 6d4f0ade390007e0384b5d7a90a358482586ca9b..b79430281951a0f933ec7d4cabbf6b85882c5627 100644 (file)
@@ -1336,7 +1336,7 @@ extern Bool     VG_(seg_overlaps)(const Segment *s, Addr ptr, UInt size);
 extern void VG_(pad_address_space)(void);
 extern void VG_(unpad_address_space)(void);
 
-extern REGPARM(1)
+extern //REGPARM(1)
        void VG_(unknown_esp_update) ( Addr new_ESP );
 
 /* ---------------------------------------------------------------------
@@ -1481,7 +1481,7 @@ extern void VG_(missing_tool_func) ( const Char* fn );
    startup time, are given values denoting offsets into baseBlock.
    These offsets are in *words* from the start of baseBlock. */
 
-#define VG_BASEBLOCK_WORDS 157
+#define VG_BASEBLOCK_WORDS 200 // 157
 
 extern UInt VG_(baseBlock)[VG_BASEBLOCK_WORDS];
 
index 7965f562d8c03bd897aaf1e19dbfc8d368f3541d..d4b61b878ac3be6a6cc4278ac4717ee3ed7758f4 100644 (file)
@@ -24,7 +24,7 @@ void,         post_clo_init
 ## always results in the same output, because basic blocks can be
 ## retranslated.  Unless you're doing something really strange...
 ## 'orig_addr' is the address of the first instruction in the block.
-IRBB*, instrument,     IRBB* bb
+IRBB*, instrument,     IRBB* bb,   VexGuestLayoutInfo* layout
 
 ## Return the address of a helper function name inserted by this tool
 ## into the IR.  Return 0 if not found.
index d787f6ae9046b3b879a6548784db1e577b5ca3cb..f964bab73f23c61e2df7d98e8488b0734fb2094f 100644 (file)
@@ -5,13 +5,11 @@ VALGRIND_2.1 {
                vgProf_*;
                 vgOff_*;
                 vgArch_*;
-               ppIRBB;
-               emptyIR*;
-               *IRTypeEnv;
                *IRExpr*;
                *IRStmt*;
                *IRBB*;
                *IRDirty*;
+               *IRType*;
                LibVEX_Alloc;
 
        local:
index 637dc6f0a702ac5b1a6e39345c70c5408561dfad..31d328f30977861c512d9d8d5945c447b1d31008 100644 (file)
@@ -674,7 +674,7 @@ Segment *VG_(next_segment)(Segment *s)
 /* This function gets called if new_mem_stack and/or die_mem_stack are
    tracked by the tool, and one of the specialised cases (eg. new_mem_stack_4)
    isn't used in preference */
-REGPARM(1)
+//REGPARM(1)
 void VG_(unknown_esp_update)(Addr new_SP)
 {
    Addr old_SP = BASEBLOCK_STACK_PTR; //VG_(get_archreg)(R_STACK_PTR);
index ef704f46181ca2845aa49c7920b2e013adcd2b35..a1370a1ad4c59980e27296b2f3540323ce48cc0b 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "../../../pub/libvex_basictypes.h"
 #include "../../../pub/libvex_ir.h"
+#include "../../../pub/libvex.h"
 
 
 /*====================================================================*/