static bool r_debug_gcore (RDebug *dbg, RBuffer *dest) { #if __APPLE__ return xnu_generate_corefile (dbg, dest); #else return false; #endif }
static bool r_debug_gcore (RDebug *dbg, RBuffer *dest) { #if __APPLE__ return xnu_generate_corefile (dbg, dest); #elif __linux__ && (__x86_64__ || __i386__) return linux_generate_corefile (dbg, dest); #else return false; #endif }