Bustage fix for bug 478195.
authorBen Turner <bent.mozilla@gmail.com>
Tue, 17 Feb 2009 21:51:50 -0800
changeset 25121 65a461a480b7749e6a4c04d2300e5e38caf17869
parent 25120 90d9e594332487dc5151653e88ba20856d414a2f
child 25122 ef14c9f31184505412e94b8915eeaaccadda8253
push idunknown
push userunknown
push dateunknown
bugs478195
milestone1.9.2a1pre
Bustage fix for bug 478195.
tools/trace-malloc/lib/nsTraceMalloc.c
--- a/tools/trace-malloc/lib/nsTraceMalloc.c
+++ b/tools/trace-malloc/lib/nsTraceMalloc.c
@@ -1990,19 +1990,20 @@ FreeCallback(void * ptr, PRUint32 start,
     }
     TM_EXIT_LOCK_AND_UNSUPPRESS_TRACING(t);
 }
 
 PR_IMPLEMENT(nsTMStackTraceID)
 NS_TraceMallocGetStackTrace(void)
 {
     callsite *site;
+    int dummy;
     tm_thread *t = tm_get_thread();
 
-    site = backtrace(t, 2);
+    site = backtrace(t, 2, &dummy);
     return (nsTMStackTraceID) site;
 }
 
 PR_IMPLEMENT(void)
 NS_TraceMallocPrintStackTrace(FILE *ofp, nsTMStackTraceID id)
 {
     print_stack(ofp, (callsite *)id);
 }