Author: njn
Date: 2007-10-16 08:42:54 +0100 (Tue, 16 Oct 2007)
New Revision: 7003

Log:
remove unused function

Modified:
   branches/MASSIF2/massif/ms_main.c


Modified: branches/MASSIF2/massif/ms_main.c
===================================================================
--- branches/MASSIF2/massif/ms_main.c   2007-10-16 07:38:18 UTC (rev 7002)
+++ branches/MASSIF2/massif/ms_main.c   2007-10-16 07:42:54 UTC (rev 7003)
@@ -697,16 +697,6 @@
 #define MAX_OVERESTIMATE   50
 #define MAX_IPS            (MAX_DEPTH + MAX_OVERESTIMATE)
 
-// XXX: look at the "(below main)"/"__libc_start_main" mess (m_stacktrace.c
-//      and m_demangle.c).  Don't hard-code "(below main)" in here.
-// [Nb: Josef wants --show-below-main to work for his fn entry/exit tracing]
-static Bool is_main_or_below_main(Char* fnname)
-{
-   if (VG_STREQ(fnname, "main"))         return True;
-   if (VG_STREQ(fnname, "(below main)")) return True;
-   return False;
-}
-
 // Get the stack trace for an XCon, filtering out uninteresting entries:
 // alloc-fns and entries above alloc-fns, and entries below main-or-below-main.
 //   Eg:       alloc-fn1 / alloc-fn2 / a / b / main / (below main) / c
@@ -764,6 +754,11 @@
 
       // Filter out entries that are below main, if necessary.
       // XXX: stats -- should record how often this happens.
+      // XXX: look at the "(below main)"/"__libc_start_main" mess
+      //      (m_stacktrace.c and m_demangle.c).  Don't hard-code "(below
+      //      main)" in here.
+      // [Nb: Josef wants --show-below-main to work for his fn entry/exit
+      //      tracing]
       if (should_hide_below_main) {
          for (i = n_ips-1; i >= 0; i--) {
             if (VG_(get_fnname)(ips[i], buf, BUF_LEN)) {


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to