|
From: <sv...@va...> - 2009-05-04 06:54:36
|
Author: njn
Date: 2009-05-04 07:54:23 +0100 (Mon, 04 May 2009)
New Revision: 9765
Log:
Remove some debugging code.
Modified:
branches/DARWIN/coregrind/m_transtab.c
branches/DARWIN/coregrind/pub_core_transtab.h
branches/DARWIN/memcheck/mc_errors.c
Modified: branches/DARWIN/coregrind/m_transtab.c
===================================================================
--- branches/DARWIN/coregrind/m_transtab.c 2009-05-04 06:54:04 UTC (rev 9764)
+++ branches/DARWIN/coregrind/m_transtab.c 2009-05-04 06:54:23 UTC (rev 9765)
@@ -1629,38 +1629,6 @@
return score_total;
}
-
-// GrP for debugging use
-void VG_(untranslate)(ULong *host_ip)
-{
- Int sno, i, v;
-
- for (sno = 0; sno < N_SECTORS; sno++) {
- if (sectors[sno].tc == NULL)
- continue; // empty sector
- if (host_ip < sectors[sno].tc || host_ip >= sectors[sno].tc_next)
- continue; // host_ip not in this sector
-
- for (i = 0; i < N_TTES_PER_SECTOR; i++) {
- TTEntry *tt = §ors[sno].tt[i];
- if (tt->status != InUse)
- continue;
- if (host_ip < tt->tcptr || host_ip >= tt->tcptr+tt->tc_szQ)
- continue;
-
- VG_(printf)("host %p..%p -> guest",
- tt->tcptr, tt->tcptr+tt->tc_szQ);
- for (v = 0; v < tt->vge.n_used; v++) {
- VG_(printf)("%s %#lx..%#lx",
- v==0 ? "" : ",",
- (Addr)tt->vge.base[v],
- (Addr)tt->vge.base[v]+tt->vge.len[v]);
- }
- VG_(printf)("\n");
- }
- }
-}
-
/*--------------------------------------------------------------------*/
/*--- end ---*/
/*--------------------------------------------------------------------*/
Modified: branches/DARWIN/coregrind/pub_core_transtab.h
===================================================================
--- branches/DARWIN/coregrind/pub_core_transtab.h 2009-05-04 06:54:04 UTC (rev 9764)
+++ branches/DARWIN/coregrind/pub_core_transtab.h 2009-05-04 06:54:23 UTC (rev 9765)
@@ -97,10 +97,6 @@
extern ULong VG_(get_BB_profile) ( BBProfEntry tops[], UInt n_tops );
-// Prints some translation table details for the given host IP. For
-// debugging.
-void VG_(untranslate) ( ULong *host_ip );
-
#endif // __PUB_CORE_TRANSTAB_H
/*--------------------------------------------------------------------*/
Modified: branches/DARWIN/memcheck/mc_errors.c
===================================================================
--- branches/DARWIN/memcheck/mc_errors.c 2009-05-04 06:54:04 UTC (rev 9764)
+++ branches/DARWIN/memcheck/mc_errors.c 2009-05-04 06:54:23 UTC (rev 9765)
@@ -1361,17 +1361,6 @@
}
-// GrP for debugging
-__attribute__((unused))
-static void mc_describe_address(Addr addr)
-{
- AddrInfo ai = {0};
-
- describe_addr(addr, &ai);
- mc_pp_AddrInfo(addr, &ai, True);
-}
-
-
/*--------------------------------------------------------------------*/
/*--- end mc_errors.c ---*/
/*--------------------------------------------------------------------*/
|