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>
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>
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.
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;
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);
#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:
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;
}
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;
}
{
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;
/* 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 */
#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 );