Esempio n. 1
0
BOOL WINAPI
DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
{
	switch (dwReason) {
	case DLL_PROCESS_ATTACH:
		backtrace_register();
		break;
	case DLL_PROCESS_DETACH:
		backtrace_unregister();
		break;
	}
	return TRUE;
}
Esempio n. 2
0
int
main()
{
#if 1
  printf("STASRTUP PU\n");
  //LoadLibraryA("backtrace.dll");
  backtrace_register();
  bar();
  backtrace_unregister();
#else
  printf("gakkgakk\n");
#endif
  return 0;
}
Esempio n. 3
0
void Sys_BacktraceInit (void)
{
#ifdef HAVE_BFD_H
	backtrace_register();
#endif
}