Log BACKTRACE_METHOD_TEXT, BACKTRACE_LOOKUP_METHOD_TEXT

This commit is contained in:
Glenn Maynard
2003-09-16 03:20:18 +00:00
parent fa1b6715b4
commit b63f241c56
2 changed files with 10 additions and 0 deletions
@@ -1,4 +1,5 @@
#include "global.h"
#include "RageLog.h"
#include "ArchHooks_Unix.h"
#include "archutils/Unix/SignalHandler.h"
@@ -28,6 +29,14 @@ ArchHooks_Unix::ArchHooks_Unix()
SignalHandler::OnClose( EmergencyShutdown );
}
void ArchHooks_Unix::DumpDebugInfo()
{
#if defined(CRASH_HANDLER)
LOG->Info( "Crash backtrace component: %s", BACKTRACE_METHOD_TEXT );
LOG->Info( "Crash lookup component: %s", BACKTRACE_LOOKUP_METHOD_TEXT );
#endif
}
/*
* Copyright (c) 2003 by the person(s) listed below. All rights reserved.
*
@@ -6,6 +6,7 @@ class ArchHooks_Unix: public ArchHooks
{
public:
ArchHooks_Unix();
void DumpDebugInfo();
};
#undef ARCH_HOOKS