]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Convert the 'skin_errors' need to 'tool_errors'.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 22 Nov 2004 16:46:13 +0000 (16:46 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 22 Nov 2004 16:46:13 +0000 (16:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3053

addrcheck/ac_main.c
configure.in
coregrind/core.h
coregrind/docs/coregrind_tools.html
coregrind/toolfuncs.def
coregrind/vg_errcontext.c
coregrind/vg_main.c
coregrind/vg_needs.c
helgrind/hg_main.c
include/tool.h.base
memcheck/mc_main.c

index ea90b0a18c208aa9f41ab1aa7d95374a9a146213..8d94404a672a150cecacbf565e28d5c24435b5d2 100644 (file)
@@ -1261,7 +1261,7 @@ void SK_(pre_clo_init)(void)
    VG_(details_avg_translation_sizeB) ( 135 );
 
    VG_(needs_core_errors)         ();
-   VG_(needs_skin_errors)         ();
+   VG_(needs_tool_errors)         ();
    VG_(needs_libc_freeres)        ();
    VG_(needs_command_line_options)();
    VG_(needs_client_requests)     ();
index 1401ea191b5f98e76b11a45c4a2181af49e6681a..87cc3a7cfbc9f1a308be9c4d314862b03fddc602 100644 (file)
@@ -7,7 +7,7 @@ AM_INIT_AUTOMAKE
 AM_MAINTAINER_MODE
 
 # Where is VEX ? ToDo: --with-vex=
-VEX_DIR=/home/sewardj/Vex/vex/trunk
+VEX_DIR=/home/njn/vex/trunk
 AC_SUBST(VEX_DIR)
 
 # Checks for programs.
index 6fcd9a69f71e85154e49604fbaa6c4c5c076a775..4ad5b6c95234e5e94c6c9dc02457e82f8de960a2 100644 (file)
@@ -381,7 +381,7 @@ typedef
    struct {
       Bool libc_freeres;
       Bool core_errors;
-      Bool skin_errors;
+      Bool tool_errors;
       Bool basic_block_discards;
       Bool shadow_regs;
       Bool command_line_options;
index c9546509aa8d99354d95ac9b8042824ba8d2663c..5aa335d463f0807013939c1528583200afef7dee 100644 (file)
@@ -457,7 +457,7 @@ command line options;  wrap system calls;  record extra information about
 malloc'd blocks, etc.<p>
 
 For example, if a tool wants the core's help in recording and reporting errors,
-it must set the <code>skin_errors</code> need to <code>True</code>, and then
+it must set the <code>tool_errors</code> need to <code>True</code>, and then
 provide definitions of six functions for comparing errors, printing out errors,
 reading suppressions from a suppressions file, etc.  While writing these
 functions requires some work, it's much less than doing error handling from
index 2ea1bec9e96a2b43e5e25b876eeb03e554958ed5..27ec8ff66184998e7f7d3171b28794bf2882a61b 100644 (file)
@@ -38,7 +38,7 @@ void, fini,   Int exitcode
 ## (none needed)
 
 ## ------------------------------------------------------------------
-## VG_(needs).skin_errors
+## VG_(needs).tool_errors
 
 ## Identify if two errors are equal, or equal enough.  `res' indicates how
 ## close is "close enough".  `res' should be passed on as necessary, eg. if
index 45a5c2cc6c64321674b98b09267f6aa16526f19f..1b8f7048080ebaffab8d80efbf7898d58569e058 100644 (file)
@@ -213,10 +213,10 @@ static Bool eq_Error ( VgRes res, Error* e1, Error* e2 )
             return True;
          return False;
       default: 
-         if (VG_(needs).skin_errors)
+         if (VG_(needs).tool_errors)
             return SK_(eq_SkinError)(res, e1, e2);
          else {
-            VG_(printf)("\nUnhandled error type: %u. VG_(needs).skin_errors\n"
+            VG_(printf)("\nUnhandled error type: %u. VG_(needs).tool_errors\n"
                         "probably needs to be set.\n",
                         e1->ekind);
             VG_(skin_panic)("unhandled error type");
@@ -238,10 +238,10 @@ static void pp_Error ( Error* err, Bool printCount )
          VG_(pp_ExeContext)(err->where);
          break;
       default: 
-         if (VG_(needs).skin_errors)
+         if (VG_(needs).tool_errors)
             SK_(pp_SkinError)( err );
          else {
-            VG_(printf)("\nUnhandled error type: %u.  VG_(needs).skin_errors\n"
+            VG_(printf)("\nUnhandled error type: %u.  VG_(needs).tool_errors\n"
                         "probably needs to be set?\n",
                         err->ekind);
             VG_(skin_panic)("unhandled error type");
@@ -531,7 +531,7 @@ void VG_(maybe_record_error) ( ThreadId tid,
    *p = err;
 
    /* update `extra', for non-core errors (core ones don't use 'extra') */
-   if (VG_(needs).skin_errors && PThreadErr != ekind) {
+   if (VG_(needs).tool_errors && PThreadErr != ekind) {
       extra_size = SK_(update_extra)(p);
 
       /* copy block pointed to by `extra', if there is one */
@@ -843,7 +843,7 @@ static void load_one_suppressions_file ( Char* filename )
       }
 
       /* Is it a tool suppression? */
-      else if (VG_(needs).skin_errors && 
+      else if (VG_(needs).tool_errors && 
                tool_name_present(VG_(details).name, tool_names))
       {
          if (SK_(recognised_suppression)(supp_name, supp)) 
@@ -864,7 +864,7 @@ static void load_one_suppressions_file ( Char* filename )
          continue;
       }
 
-      if (VG_(needs).skin_errors && 
+      if (VG_(needs).tool_errors && 
           !SK_(read_extra_suppression_info)(fd, buf, N_BUF, supp)) 
          goto syntax_error;
 
@@ -956,11 +956,11 @@ Bool supp_matches_error(Supp* su, Error* err)
       case PThreadSupp:
          return (err->ekind == PThreadErr);
       default:
-         if (VG_(needs).skin_errors) {
+         if (VG_(needs).tool_errors) {
             return SK_(error_matches_suppression)(err, su);
          } else {
             VG_(printf)(
-               "\nUnhandled suppression type: %u.  VG_(needs).skin_errors\n"
+               "\nUnhandled suppression type: %u.  VG_(needs).tool_errors\n"
                "probably needs to be set.\n",
                err->ekind);
             VG_(skin_panic)("unhandled suppression type");
index bbe0b6a9250194633171718f753d4b9ccc1ce7e3..70752d82aa229e497ad1010a89b9d619abd40823 100644 (file)
@@ -2020,7 +2020,7 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname )
    }
 
    if (VG_(clo_n_suppressions) < VG_CLO_MAX_SFILES-1 &&
-       (VG_(needs).core_errors || VG_(needs).skin_errors)) {
+       (VG_(needs).core_errors || VG_(needs).tool_errors)) {
       /* If there are no suppression files specified and the tool
         needs one, load the default */
       static const Char default_supp[] = "default.supp";
@@ -2032,7 +2032,7 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname )
    }
 
    if (VG_(clo_gen_suppressions) && 
-       !VG_(needs).core_errors && !VG_(needs).skin_errors) {
+       !VG_(needs).core_errors && !VG_(needs).tool_errors) {
       VG_(message)(Vg_UserMsg, 
                    "Can't use --gen-suppressions=yes with this tool,");
       VG_(message)(Vg_UserMsg, 
@@ -2817,7 +2817,7 @@ int main(int argc, char **argv)
    // Read suppression file
    //   p: process_cmd_line_options()  [for VG_(clo_suppressions)]
    //--------------------------------------------------------------
-   if (VG_(needs).core_errors || VG_(needs).skin_errors)
+   if (VG_(needs).core_errors || VG_(needs).tool_errors)
       VG_(load_suppressions)();
 
    //--------------------------------------------------------------
@@ -2878,7 +2878,7 @@ int main(int argc, char **argv)
    if (VG_(clo_track_fds))
       VG_(show_open_fds)();
 
-   if (VG_(needs).core_errors || VG_(needs).skin_errors)
+   if (VG_(needs).core_errors || VG_(needs).tool_errors)
       VG_(show_all_errors)();
 
    SK_(fini)( exitcode );
index ad509e7e761f2c12346b10967b3fc27adcfba83f..0055423a35a08b0307b5efaad8169e65647ad2fd 100644 (file)
@@ -48,7 +48,7 @@ VgDetails VG_(details) = {
 
 VgNeeds VG_(needs) = {
    .core_errors          = False,
-   .skin_errors          = False,
+   .tool_errors          = False,
    .libc_freeres         = False,
    .basic_block_discards = False,
    .shadow_regs          = False,
@@ -156,7 +156,7 @@ DETAILS(UInt,  avg_translation_sizeB)
 
 NEEDS(libc_freeres)
 NEEDS(core_errors)
-NEEDS(skin_errors)
+NEEDS(tool_errors)
 NEEDS(basic_block_discards)
 NEEDS(shadow_regs)
 NEEDS(command_line_options)
index aab4bf5915f86b7661dfd9de6ba54e73152a28e8..01e0af0ef42ddb8094c806fdfc2b06965d571796 100644 (file)
@@ -3275,7 +3275,7 @@ void SK_(pre_clo_init)(void)
    VG_(details_avg_translation_sizeB) ( 115 );
 
    VG_(needs_core_errors)();
-   VG_(needs_skin_errors)();
+   VG_(needs_tool_errors)();
    VG_(needs_data_syms)();
    VG_(needs_client_requests)();
    VG_(needs_command_line_options)();
index 09b406482bdf93216c881c48effe7fbcec4f09bf..c2a9d7fdbb17780e9ffd6c68e66c8cbc677a87aa 100644 (file)
@@ -1822,7 +1822,7 @@ extern void VG_(needs_core_errors) ( void );
    lot like being a member of a type class. */
 
 /* Want to report errors from tool?  This implies use of suppressions, too. */
-extern void VG_(needs_skin_errors) ( void );
+extern void VG_(needs_tool_errors) ( void );
 
 /* Is information kept about specific individual basic blocks?  (Eg. for
    cachegrind there are cost-centres for every instruction, stored at a
index 7ccf5560957003f2ef3fdcafb9294e83d5edee2a..91ceaa47c3c3f252256c1ed5fb2c0cd21bf8baf9 100644 (file)
@@ -1930,7 +1930,7 @@ void SK_(pre_clo_init)(void)
    VG_(details_avg_translation_sizeB) ( 228 );
 
    VG_(needs_core_errors)         ();
-   VG_(needs_skin_errors)         ();
+   VG_(needs_tool_errors)         ();
    VG_(needs_libc_freeres)        ();
    VG_(needs_shadow_regs)         ();
    VG_(needs_command_line_options)();