Renamed VG_(skin_panic) as VG_(tool_panic).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3057 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/mac_leakcheck.c b/memcheck/mac_leakcheck.c
index 6320feb..6cd7e32 100644
--- a/memcheck/mac_leakcheck.c
+++ b/memcheck/mac_leakcheck.c
@@ -521,7 +521,7 @@
          MAC_(bytes_reachable) += p_min->total_bytes;
 
       } else {
-         VG_(skin_panic)("generic_detect_memory_leaks: unknown loss mode");
+         VG_(tool_panic)("generic_detect_memory_leaks: unknown loss mode");
       }
       p_min->num_blocks = 0;
    }
diff --git a/memcheck/mac_malloc_wrappers.c b/memcheck/mac_malloc_wrappers.c
index 23836af..0bbe1a0 100644
--- a/memcheck/mac_malloc_wrappers.c
+++ b/memcheck/mac_malloc_wrappers.c
@@ -148,7 +148,7 @@
       VG_(malloc) should be noaccess as far as the client is
       concerned. */
    if (!MAC_(check_noaccess)( (Addr)mc, sizeof(MAC_Chunk), NULL )) {
-      VG_(skin_panic)("add_MAC_chunk: shadow area is accessible");
+      VG_(tool_panic)("add_MAC_chunk: shadow area is accessible");
    } 
 
    VG_(HT_add_node)( table, (VgHashNode*)mc );
@@ -435,7 +435,7 @@
       VG_(malloc) should be noaccess as far as the client is
       concerned. */
    if (!MAC_(check_noaccess)( (Addr)mp, sizeof(MAC_Mempool), NULL )) {
-      VG_(skin_panic)("MAC_(create_mempool): shadow area is accessible");
+      VG_(tool_panic)("MAC_(create_mempool): shadow area is accessible");
    } 
 
    VG_(HT_add_node)( MAC_(mempool_list), (VgHashNode*)mp );
diff --git a/memcheck/mac_needs.c b/memcheck/mac_needs.c
index e528c6d..753f602 100644
--- a/memcheck/mac_needs.c
+++ b/memcheck/mac_needs.c
@@ -193,7 +193,7 @@
          return True;
 
       case LeakErr:
-         VG_(skin_panic)("Shouldn't get LeakErr in SK_(eq_Error),\n"
+         VG_(tool_panic)("Shouldn't get LeakErr in SK_(eq_Error),\n"
                          "since it's handled with VG_(unique_error)()!");
 
       case IllegalMempoolErr:
@@ -202,7 +202,7 @@
       default: 
          VG_(printf)("Error:\n  unknown error code %d\n",
                      VG_(get_error_kind)(e1));
-         VG_(skin_panic)("unknown error code in SK_(eq_Error)");
+         VG_(tool_panic)("unknown error code in SK_(eq_Error)");
    }
 }
 
@@ -260,7 +260,7 @@
          tl_assert(0 == a);
          break;
       default:
-         VG_(skin_panic)("MAC_(pp_AddrInfo)");
+         VG_(tool_panic)("MAC_(pp_AddrInfo)");
    }
 }
 
@@ -297,7 +297,7 @@
                                         "stated on the next line");
                break;
             default: 
-               VG_(skin_panic)("SK_(pp_shared_Error)(axskind)");
+               VG_(tool_panic)("SK_(pp_shared_Error)(axskind)");
          }
          VG_(pp_ExeContext)( VG_(get_error_where)(err) );
          MAC_(pp_AddrInfo)(VG_(get_error_address)(err), &err_extra->addrinfo);
@@ -336,7 +336,7 @@
       default: 
          VG_(printf)("Error:\n  unknown Memcheck/Addrcheck error code %d\n",
                      VG_(get_error_kind)(err));
-         VG_(skin_panic)("unknown error code in MAC_(pp_shared_Error)");
+         VG_(tool_panic)("unknown error code in MAC_(pp_shared_Error)");
    }
 }
 
@@ -543,7 +543,7 @@
       VG_(unique_error)() so they're not copied anyway. */
    case LeakErr:     return 0;
    case OverlapErr:  return sizeof(OverlapExtra);
-   default: VG_(skin_panic)("update_extra: bad errkind");
+   default: VG_(tool_panic)("update_extra: bad errkind");
    }
 }
 
@@ -636,7 +636,7 @@
          VG_(printf)("Error:\n"
                      "  unknown suppression type %d\n",
                      VG_(get_supp_kind)(su));
-         VG_(skin_panic)("unknown suppression type in "
+         VG_(tool_panic)("unknown suppression type in "
                          "SK_(error_matches_suppression)");
    }
 }
@@ -657,7 +657,7 @@
       case 4:               return "Addr4";
       case 8:               return "Addr8";
       case 16:              return "Addr16";
-      default:              VG_(skin_panic)("unexpected size for Addr");
+      default:              VG_(tool_panic)("unexpected size for Addr");
       }
      
    case ValueErr:
@@ -668,12 +668,12 @@
       case 4:               return "Value4";
       case 8:               return "Value8";
       case 16:              return "Value16";
-      default:              VG_(skin_panic)("unexpected size for Value");
+      default:              VG_(tool_panic)("unexpected size for Value");
       }
    case CoreMemErr:         return "CoreMem";
    case OverlapErr:         return "Overlap";
    case LeakErr:            return "Leak";
-   default:                 VG_(skin_panic)("get_error_name: unexpected type");
+   default:                 VG_(tool_panic)("get_error_name: unexpected type");
    }
    VG_(printf)(s);
 }
@@ -875,7 +875,7 @@
    }
    case VG_USERREQ__MALLOCLIKE_BLOCK__OLD_DO_NOT_USE:
    case VG_USERREQ__FREELIKE_BLOCK__OLD_DO_NOT_USE:
-      VG_(skin_panic)(err);
+      VG_(tool_panic)(err);
 
    case VG_USERREQ__MALLOCLIKE_BLOCK: {
       Addr p         = (Addr)arg[1];
@@ -958,7 +958,7 @@
       VG_(message)(Vg_DebugMsg,
                    "probable sanity check failure for syscall number %d\n",
                    syscallno );
-      VG_(skin_panic)("aborting due to the above ... bye!");
+      VG_(tool_panic)("aborting due to the above ... bye!");
    }
 }
 
diff --git a/memcheck/mc_from_ucode.c b/memcheck/mc_from_ucode.c
index cef72db..7b7aa07 100644
--- a/memcheck/mc_from_ucode.c
+++ b/memcheck/mc_from_ucode.c
@@ -123,7 +123,7 @@
       case 4: helper = (Addr) & MC_(helperc_LOADV4); break;
       case 2: helper = (Addr) & MC_(helperc_LOADV2); break;
       case 1: helper = (Addr) & MC_(helperc_LOADV1); break;
-      default: VG_(skin_panic)("synth_LOADV");
+      default: VG_(tool_panic)("synth_LOADV");
    }
    VG_(synth_ccall) ( helper, 1, 1, argv, tagv, tv_reg,
                       regs_live_before, regs_live_after );
@@ -143,7 +143,7 @@
       case 4: helper = (Addr) MC_(helperc_STOREV4); break;
       case 2: helper = (Addr) MC_(helperc_STOREV2); break;
       case 1: helper = (Addr) MC_(helperc_STOREV1); break;
-      default: VG_(skin_panic)("synth_STOREV");
+      default: VG_(tool_panic)("synth_STOREV");
    }
    VG_(synth_ccall) ( helper, 2, 2, argv, tagv, INVALID_REALREG,
                       regs_live_before, regs_live_after );
@@ -158,7 +158,7 @@
       case 2: val = 0xFFFF0000; break;
       case 1: val = 0xFFFFFF00; break;
       case 0: val = 0xFFFFFFFE; break;
-      default: VG_(skin_panic)("synth_SETV");
+      default: VG_(tool_panic)("synth_SETV");
    }
    VG_(emit_movv_lit_reg) ( 4, val, reg );
 }
@@ -200,7 +200,7 @@
          case 0: 
             /* should never happen */
          default: 
-            VG_(skin_panic)("synth_TESTV(ArchReg)");
+            VG_(tool_panic)("synth_TESTV(ArchReg)");
       }
    } else {
       switch (sz) {
@@ -223,7 +223,7 @@
             synth_minimal_test_lit_reg ( 0x00000001, val );
             break;
          default: 
-            VG_(skin_panic)("synth_TESTV(RealReg)");
+            VG_(tool_panic)("synth_TESTV(RealReg)");
       }
    }
    
@@ -269,7 +269,7 @@
          VG_(emit_nonshiftopv_lit_reg) ( False, 4, OR, 0xFFFFFF00, reg );
          break;
       default: 
-         VG_(skin_panic)("synth_GETV");
+         VG_(tool_panic)("synth_GETV");
    }
 }
 
@@ -303,7 +303,7 @@
             }
             break;
          default: 
-            VG_(skin_panic)("synth_PUTV(lit)");
+            VG_(tool_panic)("synth_PUTV(lit)");
       }
 
    } else {
@@ -339,7 +339,7 @@
             }
             break;
          default: 
-            VG_(skin_panic)("synth_PUTV(reg)");
+            VG_(tool_panic)("synth_PUTV(reg)");
       }
 
       if (sz == 1 && lit_or_reg >= 4) {
@@ -508,7 +508,7 @@
          break;
 
       default:
-         VG_(skin_panic)("synth_TAG1_op");
+         VG_(tool_panic)("synth_TAG1_op");
    }
 }
 
@@ -575,7 +575,7 @@
          break;
 
       default:
-         VG_(skin_panic)("synth_TAG2_op");
+         VG_(tool_panic)("synth_TAG2_op");
    }
 }
 
@@ -652,7 +652,7 @@
       default: 
          VG_(printf)("emit_XUInstr: unhandled extension insn:\n");
          VG_(pp_UInstr)(0,u);
-         VG_(skin_panic)("emit_XUInstr: unhandled extension opcode");
+         VG_(tool_panic)("emit_XUInstr: unhandled extension opcode");
    }
 }
 
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index 27ac7cf..1e78611 100644
--- a/memcheck/mc_main.c
+++ b/memcheck/mc_main.c
@@ -644,7 +644,7 @@
          break;
 
       default:
-         VG_(skin_panic)("mc_check_is_writable: unexpected CorePart");
+         VG_(tool_panic)("mc_check_is_writable: unexpected CorePart");
       }
    }
 
@@ -683,7 +683,7 @@
          break;
 
       default:
-         VG_(skin_panic)("mc_check_is_readable: unexpected CorePart");
+         VG_(tool_panic)("mc_check_is_readable: unexpected CorePart");
       }
    }
    VGP_POPCC(VgpCheckMem);
@@ -774,7 +774,7 @@
    case 4:  mask = 0xffffffff; break;
    case 2:  mask = 0xffff;     break;
    case 1:  mask = 0xff;       break;
-   default: VG_(skin_panic)("Unhandled size in mc_pre_reg_read");
+   default: VG_(tool_panic)("Unhandled size in mc_pre_reg_read");
    }
 
    if (VGM_WORD_VALID != (mask & VG_(get_thread_shadow_archreg)( tid, reg )) )
@@ -1237,7 +1237,7 @@
    }
 
    VG_(printf)("size is %d\n", size);
-   VG_(skin_panic)("MC_(fpu_read_check): unhandled size");
+   VG_(tool_panic)("MC_(fpu_read_check): unhandled size");
 #  endif
 }
 
@@ -1320,7 +1320,7 @@
    }
 
    VG_(printf)("size is %d\n", size);
-   VG_(skin_panic)("MC_(fpu_write_check): unhandled size");
+   VG_(tool_panic)("MC_(fpu_write_check): unhandled size");
 #  endif
 }
 
diff --git a/memcheck/mc_translate.c b/memcheck/mc_translate.c
index 05dfb16..6a815c9 100644
--- a/memcheck/mc_translate.c
+++ b/memcheck/mc_translate.c
@@ -93,7 +93,7 @@
    case TAG2:   return LIT0 && SZ0 && CC0 &&  TR1 && TR2 && Ls3 && XOTHER;
    default:
       VG_(printf)("unhandled opcode: %u\n", u->opcode);
-      VG_(skin_panic)("SK_(sane_XUInstr): unhandled opcode");
+      VG_(tool_panic)("SK_(sane_XUInstr): unhandled opcode");
    }
 #  undef LIT0
 #  undef LIT1
@@ -154,7 +154,7 @@
       case Tag_ImproveOR2_TQ:  return "ImproveOR2_TQ";
       case Tag_ImproveOR1_TQ:  return "ImproveOR1_TQ";
       case Tag_DebugFn:        return "DebugFn";
-      default: VG_(skin_panic)("vg_nameOfTagOp");
+      default: VG_(tool_panic)("vg_nameOfTagOp");
    }
 }
 
@@ -174,7 +174,7 @@
       case SETV:    return "SETV";
       default:      
          VG_(printf)("unhandled opcode: %u\n", opc);
-         VG_(skin_panic)("SK_(name_XUOpcode): unhandled case");
+         VG_(tool_panic)("SK_(name_XUOpcode): unhandled case");
    }
 }
 
@@ -223,7 +223,7 @@
 
       default:
          VG_(printf)("unhandled opcode: %u\n", u->opcode);
-         VG_(skin_panic)("SK_(pp_XUInstr): unhandled opcode");
+         VG_(tool_panic)("SK_(pp_XUInstr): unhandled opcode");
    }
 
 }
@@ -248,7 +248,7 @@
 
       default: 
          VG_(printf)("unhandled opcode: %u\n", u->opcode);
-         VG_(skin_panic)("SK_(get_Xreg_usage): unhandled opcode");
+         VG_(tool_panic)("SK_(get_Xreg_usage): unhandled opcode");
    }
    return n;
 
@@ -267,7 +267,7 @@
       case 4: return Tag_ImproveOR4_TQ;
       case 2: return Tag_ImproveOR2_TQ;
       case 1: return Tag_ImproveOR1_TQ;
-      default: VG_(skin_panic)("get_Tag_ImproveOR_TQ");
+      default: VG_(tool_panic)("get_Tag_ImproveOR_TQ");
    }
 }
 
@@ -279,7 +279,7 @@
       case 4: return Tag_ImproveAND4_TQ;
       case 2: return Tag_ImproveAND2_TQ;
       case 1: return Tag_ImproveAND1_TQ;
-      default: VG_(skin_panic)("get_Tag_ImproveAND_TQ");
+      default: VG_(tool_panic)("get_Tag_ImproveAND_TQ");
    }
 }
 
@@ -291,7 +291,7 @@
       case 4: return Tag_Left4;
       case 2: return Tag_Left2;
       case 1: return Tag_Left1;
-      default: VG_(skin_panic)("get_Tag_Left");
+      default: VG_(tool_panic)("get_Tag_Left");
    }
 }
 
@@ -304,7 +304,7 @@
       case 2: return Tag_UifU2;
       case 1: return Tag_UifU1;
       case 0: return Tag_UifU0;
-      default: VG_(skin_panic)("get_Tag_UifU");
+      default: VG_(tool_panic)("get_Tag_UifU");
    }
 }
 
@@ -316,7 +316,7 @@
       case 4: return Tag_DifD4;
       case 2: return Tag_DifD2;
       case 1: return Tag_DifD1;
-      default: VG_(skin_panic)("get_Tag_DifD");
+      default: VG_(tool_panic)("get_Tag_DifD");
    }
 }
 
@@ -334,7 +334,7 @@
    if (szs == 1 && szd == 2) return Tag_PCast12;
    if (szs == 1 && szd == 1) return Tag_PCast11;
    VG_(printf)("get_Tag_PCast(%d,%d)\n", szs, szd);
-   VG_(skin_panic)("get_Tag_PCast");
+   VG_(tool_panic)("get_Tag_PCast");
 }
 
 
@@ -351,7 +351,7 @@
    if (szs == 2 && szd == 4 && !syned) return Tag_ZWiden24;
 
    VG_(printf)("get_Tag_Widen(%d,%d,%d)\n", (Int)syned, szs, szd);
-   VG_(skin_panic)("get_Tag_Widen");
+   VG_(tool_panic)("get_Tag_Widen");
 }
 
 /* Pessimally cast the spec'd shadow from one size to another. */
@@ -477,7 +477,7 @@
       uInstr2(cb, GETV, sz, ArchReg, val, TempReg, sh);
       return sh;
    }
-   VG_(skin_panic)("getOperandShadow");
+   VG_(tool_panic)("getOperandShadow");
 }
 
 /* Create and return an instrumented version of cb_in.  Free cb_in
@@ -637,7 +637,7 @@
                               TempReg, SHADOW(u_in->val2));
                   break;
                default: 
-                  VG_(skin_panic)("memcheck_instrument: MOV");
+                  VG_(tool_panic)("memcheck_instrument: MOV");
             }
             VG_(copy_UInstr)(cb, u_in);
             break;
@@ -671,7 +671,7 @@
                case 2: shift = 1; break;
                case 4: shift = 2; break;
                case 8: shift = 3; break;
-               default: VG_(skin_panic)( "memcheck_instrument(LEA2)" );
+               default: VG_(tool_panic)( "memcheck_instrument(LEA2)" );
             }
             qs = SHADOW(u_in->val1);
             qt = SHADOW(u_in->val2);
@@ -1221,7 +1221,7 @@
 
          default:
             VG_(pp_UInstr)(0, u_in);
-            VG_(skin_panic)( "memcheck_instrument: unhandled case");
+            VG_(tool_panic)( "memcheck_instrument: unhandled case");
 
       } /* end of switch (u_in->opcode) */
 
@@ -1439,7 +1439,7 @@
                   case 4: u->lit32 = 0x00000000; break;
                   case 2: u->lit32 = 0xFFFF0000; break;
                   case 1: u->lit32 = 0xFFFFFF00; break;
-                  default: VG_(skin_panic)("vg_cleanup(PUTV)");
+                  default: VG_(tool_panic)("vg_cleanup(PUTV)");
                }
                if (dis) 
                   VG_(printf)(
@@ -1457,7 +1457,7 @@
                   case 4: u->lit32 = 0x00000000; break;
                   case 2: u->lit32 = 0xFFFF0000; break;
                   case 1: u->lit32 = 0xFFFFFF00; break;
-                  default: VG_(skin_panic)("vg_cleanup(STOREV)");
+                  default: VG_(tool_panic)("vg_cleanup(STOREV)");
                }
                if (dis) 
                   VG_(printf)(