Skip to content

Commit

Permalink
bsd_generate_corefile for FreeBSD adjust version since the feature is…
Browse files Browse the repository at this point in the history
… available in the 13.2 serie
  • Loading branch information
devnexen committed Sep 1, 2023
1 parent c21764d commit d962d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/debug/p/native/bsd/bsd_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d962d55

Please sign in to comment.