]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Modularised vg_translate.c as m_translate.
authorNicholas Nethercote <njn@valgrind.org>
Fri, 13 May 2005 23:11:40 +0000 (23:11 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 13 May 2005 23:11:40 +0000 (23:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3700

coregrind/Makefile.am
coregrind/core.h
coregrind/m_errormgr.c
coregrind/m_translate.c [moved from coregrind/vg_translate.c with 99% similarity]
coregrind/pub_core_translate.h [new file with mode: 0644]
coregrind/vg_scheduler.c
coregrind/vg_transtab.c

index dd73421dce04375631ae5cf241166c9a551520f9..060ff9dbbad5ae2a4d1cc21157e01de4363f9988 100644 (file)
@@ -78,6 +78,7 @@ stage2_SOURCES = \
        m_skiplist.c \
        m_stacktrace.c \
        m_tooliface.c \
+       m_translate.c \
        ume.c \
        \
        vg_scheduler.c \
@@ -94,7 +95,6 @@ stage2_SOURCES = \
        vg_dwarf.c \
        vg_stabs.c \
        vg_symtypes.c \
-       vg_translate.c \
        vg_transtab.c
 
 ## libplatform.a must be before libarch.a and libos.a, it seems.
index 3daf0439f812d5b85a4b24b56936a9f8a9cd0525..6ac1166f419905ed7dbe59ccf50f14ec652b85a9 100644 (file)
@@ -633,16 +633,6 @@ extern void   VG_(env_remove_valgrind_env_stuff) ( Char** env );
 
 extern void   VG_(nanosleep)(struct vki_timespec *);
 
-/* ---------------------------------------------------------------------
-   Exports of vg_translate.c
-   ------------------------------------------------------------------ */
-
-extern 
-Bool VG_(translate) ( ThreadId tid, 
-                      Addr64   orig_addr,
-                      Bool     debugging_translation,
-                      Int      debugging_verbosity );
-
 /* ---------------------------------------------------------------------
    Exports of vg_symtab2.c
    ------------------------------------------------------------------ */
index 264e03f1c68c0ffcaae708cf262e0dfe9c4b4bd0..c260874383832ad5574568074e6f1acf0c46dc86 100644 (file)
@@ -33,6 +33,7 @@
 #include "pub_core_execontext.h"
 #include "pub_core_stacktrace.h"
 #include "pub_core_tooliface.h"
+#include "pub_core_translate.h"
 
 /*------------------------------------------------------------*/
 /*--- Globals                                              ---*/
similarity index 99%
rename from coregrind/vg_translate.c
rename to coregrind/m_translate.c
index 0fa409ab5eafc1f64696245df7d985a7f6eb6953..fa717dab5a6a30656531a77bc0b550b7c206b7f7 100644 (file)
@@ -1,7 +1,7 @@
 
 /*--------------------------------------------------------------------*/
 /*--- The JITter proper: register allocation & code improvement    ---*/
-/*---                                               vg_translate.c ---*/
+/*---                                                m_translate.c ---*/
 /*--------------------------------------------------------------------*/
 
 /*
@@ -508,6 +508,6 @@ Bool VG_(translate) ( ThreadId tid,
 }
 
 /*--------------------------------------------------------------------*/
-/*--- end                                           vg_translate.c ---*/
+/*--- end                                                          ---*/
 /*--------------------------------------------------------------------*/
 
diff --git a/coregrind/pub_core_translate.h b/coregrind/pub_core_translate.h
new file mode 100644 (file)
index 0000000..d74f23c
--- /dev/null
@@ -0,0 +1,49 @@
+
+/*--------------------------------------------------------------------*/
+/*--- The JITter wrapper.                     pub_core_translate.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+   This file is part of Valgrind, a dynamic binary instrumentation
+   framework.
+
+   Copyright (C) 2000-2005 Julian Seward
+      jseward@acm.org
+
+   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_TRANSLATE_H
+#define __PUB_CORE_TRANSLATE_H
+
+//--------------------------------------------------------------------
+// PURPOSE: This module is Valgrind's interface to the JITter.  It's
+// basically a wrapper around Vex.
+//--------------------------------------------------------------------
+
+extern 
+Bool VG_(translate) ( ThreadId tid, 
+                      Addr64   orig_addr,
+                      Bool     debugging_translation,
+                      Int      debugging_verbosity );
+
+#endif   // __PUB_CORE_TRANSLATE_H
+
+/*--------------------------------------------------------------------*/
+/*--- end                                                          ---*/
+/*--------------------------------------------------------------------*/
index 1ff2b823c5e126458a76fd2f04004e90c9823b50..97e10646a698a3995c092ca327d1ce770446609c 100644 (file)
@@ -66,6 +66,7 @@
 #include "pub_core_stacktrace.h"
 #include "pub_core_syscalls.h"
 #include "pub_core_tooliface.h"
+#include "pub_core_translate.h"
 #include "vki_unistd.h"
 
 /* ---------------------------------------------------------------------
index 535184d0d42cb916f96000d794b705b7b7e87150..68ccb6c4409dcabe45a9d1bef9ead1ca838e58ac 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "core.h"
 #include "pub_core_tooliface.h"
+#include "pub_core_translate.h"
 
 /* #define DEBUG_TRANSTAB */