From 9269648bfeaf8bb00eb186f3ec6c5705edde2bc3 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 1 Jun 2000 06:21:12 +0000 Subject: [PATCH] Add --trace-malloc hook. git-svn-id: svn://10.0.0.236/trunk@71252 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp b/mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp index 7bb19971447..38839484c79 100644 --- a/mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp +++ b/mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp @@ -32,6 +32,10 @@ #include "prinit.h" #include "prlog.h" +#ifdef NS_TRACE_MALLOC +#include "nsTraceMalloc.h" +#endif + static nsNativeViewerApp* gTheApp; nsNativeViewerApp::nsNativeViewerApp() @@ -151,6 +155,10 @@ ah_crap_handler(int signum) int main(int argc, char **argv) { +#ifdef NS_TRACE_MALLOC + argc = NS_TraceMallocStartupArgs(argc, argv); +#endif + #ifdef CRAWL_STACK_ON_SIGSEGV strcpy(_progname,argv[0]); signal(SIGSEGV, ah_crap_handler);