From: Nicholas Nethercote Date: Wed, 1 Sep 2004 23:58:16 +0000 (+0000) Subject: Arch-abstraction step: renamed "vg_include.h" as "core.h". X-Git-Tag: svn/VALGRIND_3_0_0~1640 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba210a6364dfda4f846eb3b8526ed9394bfa2985;p=thirdparty%2Fvalgrind.git Arch-abstraction step: renamed "vg_include.h" as "core.h". git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2643 --- diff --git a/auxprogs/valgrind-listener.c b/auxprogs/valgrind-listener.c index d835043b8c..1ab139cfe3 100644 --- a/auxprogs/valgrind-listener.c +++ b/auxprogs/valgrind-listener.c @@ -46,7 +46,7 @@ /* For VG_CLO_DEFAULT_LOGPORT and VG_BUGS_TO. */ -#include "vg_include.h" +#include "core.h" /*---------------------------------------------------------------*/ diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am index b8696479af..14a6c2082a 100644 --- a/coregrind/Makefile.am +++ b/coregrind/Makefile.am @@ -139,9 +139,9 @@ vg_inject_so_LDFLAGS = \ -Wl,-z,initfirst noinst_HEADERS = \ + core.h \ ume.h \ ume_arch.h \ - vg_include.h \ vg_constants.h \ vg_symtab2.h \ vg_unistd.h \ diff --git a/coregrind/vg_include.h b/coregrind/core.h similarity index 100% rename from coregrind/vg_include.h rename to coregrind/core.h diff --git a/coregrind/demangle/cp-demangle.c b/coregrind/demangle/cp-demangle.c index 78dfa2eecf..4bd37481f9 100644 --- a/coregrind/demangle/cp-demangle.c +++ b/coregrind/demangle/cp-demangle.c @@ -40,7 +40,7 @@ #include #endif*/ -#include "vg_include.h" +#include "core.h" #include "ansidecl.h" #include "dyn-string.h" #include "demangle.h" diff --git a/coregrind/demangle/cplus-dem.c b/coregrind/demangle/cplus-dem.c index 0daf833780..311b84fb95 100644 --- a/coregrind/demangle/cplus-dem.c +++ b/coregrind/demangle/cplus-dem.c @@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */ #endif #include "safe-ctype.h" -#include "vg_include.h" +#include "core.h" /*#include #include diff --git a/coregrind/demangle/dyn-string.c b/coregrind/demangle/dyn-string.c index 6d83a416a3..96a2f7dba9 100644 --- a/coregrind/demangle/dyn-string.c +++ b/coregrind/demangle/dyn-string.c @@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */ #include #endif*/ -#include "vg_include.h" +#include "core.h" #include "ansidecl.h" #include "dyn-string.h" diff --git a/coregrind/gen_toolint.pl b/coregrind/gen_toolint.pl index 674d16d215..bc02cbe1a5 100644 --- a/coregrind/gen_toolint.pl +++ b/coregrind/gen_toolint.pl @@ -69,7 +69,7 @@ sub getargtypes(@) { # Different output modes if ($output eq "callwrap") { - $include = "vg_include.h"; + $include = "core.h"; $generate = sub ($$$@) { my ($pfx, $ret, $func, @args) = @_; my $args = join ", ", @args; @@ -79,7 +79,7 @@ if ($output eq "callwrap") { print "}\n"; } } elsif ($output eq "proto") { - $include = "vg_include.h"; + $include = "core.h"; $generate = sub ($$$@) { my ($pfx, $ret, $func, @args) = @_; my $args = join ', ', @args; @@ -95,7 +95,7 @@ if ($output eq "callwrap") { print "$ret $pfxmap{$pfx}($func)($args);\n"; } } elsif ($output eq "missingfuncs") { - $include = "vg_include.h"; + $include = "core.h"; $generate = sub ($$$@) { my ($pfx, $ret, $func, @args) = @_; my $args = join ", ", @args; @@ -109,7 +109,7 @@ if ($output eq "callwrap") { }; $indent = " "; } elsif ($output eq "struct") { - $include = "vg_include.h"; + $include = "core.h"; $pre = sub () { print "typedef struct {\n"; }; diff --git a/coregrind/stage1.c b/coregrind/stage1.c index 9ec46639f5..25c046b662 100644 --- a/coregrind/stage1.c +++ b/coregrind/stage1.c @@ -40,7 +40,7 @@ #include #include -#include "vg_include.h" +#include "core.h" #include "ume.h" #include "ume_arch.h" diff --git a/coregrind/ume.c b/coregrind/ume.c index 735904d227..1c25193646 100644 --- a/coregrind/ume.c +++ b/coregrind/ume.c @@ -32,7 +32,7 @@ #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 -#include "vg_include.h" +#include "core.h" #include #include @@ -48,7 +48,6 @@ #include #include "ume.h" -#include "vg_include.h" struct elfinfo { diff --git a/coregrind/vg_default.c b/coregrind/vg_default.c index 2bb6b03c62..ed425e24b1 100644 --- a/coregrind/vg_default.c +++ b/coregrind/vg_default.c @@ -31,7 +31,7 @@ */ -#include "vg_include.h" +#include "core.h" /* --------------------------------------------------------------------- Error messages (for malformed tools) diff --git a/coregrind/vg_demangle.c b/coregrind/vg_demangle.c index 49a1047e42..f5696aa1dd 100644 --- a/coregrind/vg_demangle.c +++ b/coregrind/vg_demangle.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include "demangle.h" #define ADD_TO_RESULT(zzstr,zzn) \ diff --git a/coregrind/vg_dummy_profile.c b/coregrind/vg_dummy_profile.c index 8514347a2c..a44133e1ca 100644 --- a/coregrind/vg_dummy_profile.c +++ b/coregrind/vg_dummy_profile.c @@ -30,7 +30,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" static void vgp_die(void) { diff --git a/coregrind/vg_dwarf.c b/coregrind/vg_dwarf.c index 38d1155369..aff343f8d1 100644 --- a/coregrind/vg_dwarf.c +++ b/coregrind/vg_dwarf.c @@ -27,7 +27,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include "vg_symtab2.h" diff --git a/coregrind/vg_errcontext.c b/coregrind/vg_errcontext.c index 53e94a4f19..d53f712052 100644 --- a/coregrind/vg_errcontext.c +++ b/coregrind/vg_errcontext.c @@ -28,7 +28,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*------------------------------------------------------------*/ /*--- Globals ---*/ diff --git a/coregrind/vg_execontext.c b/coregrind/vg_execontext.c index 7dd56c3b15..d4e87a82eb 100644 --- a/coregrind/vg_execontext.c +++ b/coregrind/vg_execontext.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*------------------------------------------------------------*/ diff --git a/coregrind/vg_from_ucode.c b/coregrind/vg_from_ucode.c index fbb2a7c68c..1391423da0 100644 --- a/coregrind/vg_from_ucode.c +++ b/coregrind/vg_from_ucode.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*------------------------------------------------------------*/ diff --git a/coregrind/vg_hashtable.c b/coregrind/vg_hashtable.c index f1966cd306..8b19cf73a8 100644 --- a/coregrind/vg_hashtable.c +++ b/coregrind/vg_hashtable.c @@ -28,7 +28,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*--------------------------------------------------------------------*/ /*--- Declarations ---*/ diff --git a/coregrind/vg_ldt.c b/coregrind/vg_ldt.c index ba9b245bfe..45b4c4c388 100644 --- a/coregrind/vg_ldt.c +++ b/coregrind/vg_ldt.c @@ -83,7 +83,7 @@ am not sure what is and isn't allowed in user-mode. */ -#include "vg_include.h" +#include "core.h" /* Allocate and deallocate LDTs for threads. */ /* Create an LDT. If the parent_ldt is NULL, zero out the diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index cc7bbd82a3..4aa252d4ae 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -53,7 +53,7 @@ */ #include "valgrind.h" /* For the request-passing mechanism */ -#include "vg_include.h" /* For the VG_USERREQ__* constants */ +#include "core.h" /* For the VG_USERREQ__* constants */ #define __USE_UNIX98 #include diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 70b8dfb680..c7b81549bf 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -30,7 +30,7 @@ #define _FILE_OFFSET_BITS 64 -#include "vg_include.h" +#include "core.h" #include "ume.h" #include "ume_arch.h" #include "ume_archdefs.h" @@ -1442,7 +1442,7 @@ Int VG_(clo_verbosity) = 1; Bool VG_(clo_demangle) = True; Bool VG_(clo_trace_children) = False; -/* See big comment in vg_include.h for meaning of these three. +/* See big comment in core.h for meaning of these three. fd is initially stdout, for --help, but gets moved to stderr by default immediately afterwards. */ VgLogTo VG_(clo_log_to) = VgLogTo_Fd; diff --git a/coregrind/vg_malloc2.c b/coregrind/vg_malloc2.c index 06e8fd1228..a6d8832e78 100644 --- a/coregrind/vg_malloc2.c +++ b/coregrind/vg_malloc2.c @@ -30,7 +30,7 @@ */ -#include "vg_include.h" +#include "core.h" //#define DEBUG_MALLOC // turn on heavyweight debugging machinery //#define VERBOSE_MALLOC // make verbose, esp. in debugging machinery diff --git a/coregrind/vg_memory.c b/coregrind/vg_memory.c index d1a10c0715..588297ed16 100644 --- a/coregrind/vg_memory.c +++ b/coregrind/vg_memory.c @@ -30,7 +30,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include diff --git a/coregrind/vg_messages.c b/coregrind/vg_messages.c index c7b35d109b..1d2d1df389 100644 --- a/coregrind/vg_messages.c +++ b/coregrind/vg_messages.c @@ -30,7 +30,7 @@ */ -#include "vg_include.h" +#include "core.h" #include #include diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index 3dd68df87e..0b70234aed 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c @@ -30,7 +30,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /* --------------------------------------------------------------------- Wrappers around system calls, and other stuff, to do with signals. diff --git a/coregrind/vg_needs.c b/coregrind/vg_needs.c index 9de43c7633..b85abb7932 100644 --- a/coregrind/vg_needs.c +++ b/coregrind/vg_needs.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /* --------------------------------------------------------------------- diff --git a/coregrind/vg_procselfmaps.c b/coregrind/vg_procselfmaps.c index 356eca78a9..02d2c8c992 100644 --- a/coregrind/vg_procselfmaps.c +++ b/coregrind/vg_procselfmaps.c @@ -30,7 +30,7 @@ */ -#include "vg_include.h" +#include "core.h" /* static ... to keep it out of the stack frame. */ diff --git a/coregrind/vg_proxylwp.c b/coregrind/vg_proxylwp.c index 831469b069..57625e94ed 100644 --- a/coregrind/vg_proxylwp.c +++ b/coregrind/vg_proxylwp.c @@ -29,7 +29,7 @@ */ -#include "vg_include.h" +#include "core.h" /* We need our own copy of VG_(do_syscall)() to handle a special race-condition. If we've got signals unblocked, and we take a diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index ceede65ee3..6894897146 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -30,7 +30,7 @@ #include "valgrind.h" /* for VG_USERREQ__RUNNING_ON_VALGRIND and VG_USERREQ__DISCARD_TRANSLATIONS, and others */ -#include "vg_include.h" +#include "core.h" /* --------------------------------------------------------------------- diff --git a/coregrind/vg_signals.c b/coregrind/vg_signals.c index 41c2b89b8e..1fb60eaf73 100644 --- a/coregrind/vg_signals.c +++ b/coregrind/vg_signals.c @@ -74,7 +74,7 @@ appropriate proxy LWP. */ -#include "vg_include.h" +#include "core.h" #include /* OK, no library dependencies */ /* Define to give more sanity checking for signals. */ diff --git a/coregrind/vg_skiplist.c b/coregrind/vg_skiplist.c index fac7b7c0af..a02fb65d0a 100644 --- a/coregrind/vg_skiplist.c +++ b/coregrind/vg_skiplist.c @@ -82,7 +82,7 @@ won't be accidentally used. */ -#include "vg_include.h" +#include "core.h" #include diff --git a/coregrind/vg_stabs.c b/coregrind/vg_stabs.c index 59bc7e5fed..05303aef30 100644 --- a/coregrind/vg_stabs.c +++ b/coregrind/vg_stabs.c @@ -27,7 +27,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include "vg_symtab2.h" #include /* stabs defns */ diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index ea2f0a3d32..2759f991a2 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -28,7 +28,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include "vg_symtypes.h" #include "vg_symtab2.h" diff --git a/coregrind/vg_symtypes.c b/coregrind/vg_symtypes.c index e697c92d88..2018a3b48e 100644 --- a/coregrind/vg_symtypes.c +++ b/coregrind/vg_symtypes.c @@ -27,7 +27,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include "vg_symtypes.h" typedef enum { diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index caded6f281..9c836bb667 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c @@ -28,7 +28,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /* vg_unsafe.h should NOT be included into any file except this one. */ diff --git a/coregrind/vg_to_ucode.c b/coregrind/vg_to_ucode.c index 63d2c63118..c4832ae6aa 100644 --- a/coregrind/vg_to_ucode.c +++ b/coregrind/vg_to_ucode.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*------------------------------------------------------------*/ diff --git a/coregrind/vg_translate.c b/coregrind/vg_translate.c index 3659820110..688db25c83 100644 --- a/coregrind/vg_translate.c +++ b/coregrind/vg_translate.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" /*------------------------------------------------------------*/ /*--- Renamings of frequently-used global functions. ---*/ diff --git a/coregrind/vg_transtab.c b/coregrind/vg_transtab.c index 41f535660c..24d550044c 100644 --- a/coregrind/vg_transtab.c +++ b/coregrind/vg_transtab.c @@ -29,7 +29,7 @@ The GNU General Public License is contained in the file COPYING. */ -#include "vg_include.h" +#include "core.h" #include /* #define DEBUG_TRANSTAB */