From 285ea07ab542a7eabdbf78a18f803118ba03e693 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 3 Sep 2023 12:38:40 +0100 Subject: [PATCH] bsd_generate_corefile for FreeBSD adjust version since the feature is available in the 13.2 serie (#3820) --- 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 f0a0b589a5..c44f9b19af 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