From d962d55358203b88fe00fd189cb6f54d07ddaff6 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Fri, 1 Sep 2023 22:24:27 +0100 Subject: [PATCH] bsd_generate_corefile for FreeBSD adjust version since the feature is available in the 13.2 serie --- librz/debug/p/native/bsd/bsd_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/debug/p/native/bsd/bsd_debug.c b/librz/debug/p/native/bsd/bsd_debug.c index f0a0b589a51..c44f9b19af2 100644 --- a/librz/debug/p/native/bsd/bsd_debug.c +++ b/librz/debug/p/native/bsd/bsd_debug.c @@ -139,7 +139,7 @@ int bsd_reg_write(RzDebug *dbg, int type, const ut8 *buf, int size) { bool bsd_generate_corefile(RzDebug *dbg, char *path, RzBuffer *dest) { #if defined(__NetBSD__) return ptrace(PT_DUMPCORE, dbg->pid, path, strlen(path)) != -1; -#elif defined(__FreeBSD__) && __FreeBSD_version >= 1400030 +#elif defined(__FreeBSD__) && __FreeBSD_version >= 1302000 struct ptrace_coredump pc = { .pc_fd = dest->fd, .pc_flags = PC_ALL, .pc_limit = 0 }; return ptrace(PT_COREDUMP, dbg->pid, (void *)&pc, sizeof(pc)) != -1; #else