示例#1
0
GumBacktracer *
gum_backtracer_make_fuzzy (void)
{
#if defined (HAVE_I386)
  return gum_x86_backtracer_new ();
#elif defined (HAVE_ARM)
  return gum_arm_backtracer_new ();
#elif defined (HAVE_ARM64)
  return gum_arm64_backtracer_new ();
#elif defined (HAVE_MIPS)
  return gum_mips_backtracer_new ();
#else
  return NULL;
#endif
}
示例#2
0
GumBacktracer *
gum_backtracer_make_default (void)
{
#if defined (G_OS_WIN32)
  return gum_dbghelp_backtracer_new ();
#elif defined (HAVE_DARWIN) && defined (HAVE_OBJC)
  return gum_ns_backtracer_new ();
#elif defined (HAVE_GLIBC)
  return gum_gnu_backtracer_new ();
#elif defined (HAVE_I386) && !defined(__clang__)
  return gum_x86_backtracer_new ();
#elif defined (HAVE_ARM)
  return gum_arm_backtracer_new ();
#else
  return NULL;
#endif
}