Add --trace-malloc hook.

git-svn-id: svn://10.0.0.236/trunk@71252 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 2000-06-01 06:21:12 +00:00
parent c45b5a55b7
commit 9269648bfe

View File

@ -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);