]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Last few skin-->tool changes, in various places.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 22 Nov 2004 19:26:27 +0000 (19:26 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 22 Nov 2004 19:26:27 +0000 (19:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3063

coregrind/docs/coregrind_tools.html
coregrind/vg_errcontext.c
coregrind/vg_mylibc.c
helgrind/hg_main.c
include/tool.h.base

index 90203ae7c22777db221cbc7cb645e116d53a8a61..e1852445232836df7e83412f95b03013eea87840 100644 (file)
@@ -353,7 +353,7 @@ In what follows, all filenames are relative to Valgrind's top-level directory
       occurrence of the string ``<code>nl_</code>'' with ``<code>fb_</code>''.
       It might be worth trying to understand this file, at least a little;  you
       might have to do more complicated things with it later on.  In
-      particular, the name of the <code>vgskin_foobar_so_SOURCES</code> variable
+      particular, the name of the <code>vgtool_foobar_so_SOURCES</code> variable
       determines the name of the tool's shared object, which determines what
       name must be passed to the <code>--tool</code> option to use the tool.
   </li><p>
@@ -381,7 +381,7 @@ In what follows, all filenames are relative to Valgrind's top-level directory
     make install</pre>
 
       It should automake, configure and compile without errors, putting copies
-      of the tool's shared object <code>vgskin_foobar.so</code> in
+      of the tool's shared object <code>vgtool_foobar.so</code> in
       <code>foobar/</code> and
       <code>inst/lib/valgrind/</code>.
   </li><p>
@@ -428,9 +428,8 @@ A tool must define at least these four functions:
 
 Also, it must use the macro <code>VG_DETERMINE_INTERFACE_VERSION</code>
 exactly once in its source code.  If it doesn't, you will get a link error
-involving <code>VG_(skin_interface_major_version)</code>.  This macro is
-used to ensure the core/tool interface used by the core and a plugged-in
-tool are binary compatible.
+explaining the problem.  This macro is used to ensure the core/tool interface
+used by the core and a plugged-in tool are binary compatible.
 
 In addition, if a tool wants to use some of the optional services provided by
 the core, it may have to define other functions.
index cd4c22508b7141f57f4e738a98be66886fe46f2a..d1e8f6ed324cfe1abf2e24414fc31679530ea24c 100644 (file)
@@ -821,7 +821,7 @@ static void load_one_suppressions_file ( Char* filename )
 
       if (eof) goto syntax_error;
 
-      /* Check it has the "skin1,skin2,...:supp" form (look for ':') */
+      /* Check it has the "tool1,tool2,...:supp" form (look for ':') */
       i = 0;
       while (True) {
          if (buf[i] == ':')  break;
index ef80acaa86d1d5d22279e576fe87f8575d05bd4e..9f474075ad443899f231c3c71485b73ac84bf8f1 100644 (file)
@@ -1153,7 +1153,7 @@ static void assert_fail ( const Char* expr, const Char* name, const Char* report
    report_and_quit(report, NULL);
 }
 
-void VG_(skin_assert_fail) ( const Char* expr, const Char* file, Int line, const Char* fn )
+void VG_(tool_assert_fail) ( const Char* expr, const Char* file, Int line, const Char* fn )
 {
    assert_fail(expr, VG_(details).name, VG_(details).bug_reports_to, 
                file, line, fn);
index 407110ec57921c5359b93930c6f3a6bb5ede94f7..fb2738eecc7fb10d1ed23481d619575e285265b3 100644 (file)
@@ -53,9 +53,9 @@ static UInt n_lockorder_warnings = 0;
 #define DEBUG_VIRGIN_READS  0   /* Dump around address on VIRGIN reads */
 
 #if SLOW_ASSERTS
-#define SK_ASSERT(x)   tl_assert(x)
+#define TL_ASSERT(x)   tl_assert(x)
 #else
-#define SK_ASSERT(x)
+#define TL_ASSERT(x)
 #endif
 
 /* heavyweight LockSet sanity checking:
@@ -240,7 +240,7 @@ typedef struct EC_IP {
 
 static inline UInt packEC(ExeContext *ec)
 {
-   SK_ASSERT(((UWord)ec & ((1 << STATE_BITS)-1)) == 0);
+   TL_ASSERT(((UWord)ec & ((1 << STATE_BITS)-1)) == 0);
    return ((UWord)ec) >> STATE_BITS;
 }
 
@@ -445,7 +445,7 @@ static Bool tlsIsDisjoint(const ThreadLifeSeg *tls,
 
 static inline UInt packTLS(ThreadLifeSeg *tls)
 {
-   SK_ASSERT(((UWord)tls & ((1 << STATE_BITS)-1)) == 0);
+   TL_ASSERT(((UWord)tls & ((1 << STATE_BITS)-1)) == 0);
    return ((UWord)tls) >> STATE_BITS;
 }
 
@@ -656,7 +656,7 @@ static inline UInt packLockSet(const LockSet *p)
 {
    UInt id;
 
-   SK_ASSERT(((UWord)p & ((1 << STATE_BITS)-1)) == 0);
+   TL_ASSERT(((UWord)p & ((1 << STATE_BITS)-1)) == 0);
    id = ((UWord)p) >> STATE_BITS;
 
    return id;
index 6af7a0d7edaf20f172c1b17212137cbc1c324883..f9ff77ea7b576cd80758d6c84842be9a379fecb4 100644 (file)
@@ -168,7 +168,7 @@ extern Bool  VG_(clo_profile);
 
 /* Call this if a recognised option was bad for some reason.
    Note: don't use it just because an option was unrecognised -- return 'False'
-   from SKN_(process_cmd_line_option) to indicate that. */
+   from TL_(process_cmd_line_option) to indicate that. */
 extern void VG_(bad_option) ( Char* opt );
 
 /* Client args */
@@ -480,12 +480,12 @@ extern Bool VG_(getcwd_alloc) ( Char** cwd );
 
 #define tl_assert(expr)                                               \
   ((void) ((expr) ? 0 :                                                      \
-          (VG_(skin_assert_fail) (VG__STRING(expr),                  \
+          (VG_(tool_assert_fail) (VG__STRING(expr),                  \
                                   __FILE__, __LINE__,                \
                                    __PRETTY_FUNCTION__), 0)))
 
 __attribute__ ((__noreturn__))
-extern void VG_(skin_assert_fail) ( const Char* expr, const Char* file,
+extern void VG_(tool_assert_fail) ( const Char* expr, const Char* file,
                                     Int line, const Char* fn );