Skip to content

Commit

Permalink
Revive the io.self plugin on BSD ##io
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr authored and trufae committed Jan 31, 2025
1 parent b85fe91 commit 37dfc3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libr/io/p/io_self.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void macosx_debug_regions (SelfData *data, RIO *io, task_t task, mach_vm_
#include <kvm.h>
#endif
#include <errno.h>
static bool bsd_proc_vmmaps(RIO *io, int pid);
static bool bsd_proc_vmmaps(SelfData *sd, RIO *io, int pid);
#endif
#ifdef __HAIKU__
#include <kernel/image.h>
Expand Down Expand Up @@ -246,7 +246,7 @@ static int update_self_regions(RIO *io, int pid, SelfData *sd) {

return true;
#elif R2__BSD__
return bsd_proc_vmmaps(io, pid);
return bsd_proc_vmmaps(sd, io, pid);
#elif __HAIKU__
image_info ii;
int32 cookie = 0;
Expand Down Expand Up @@ -738,7 +738,7 @@ static void macosx_debug_regions(SelfData *sd, RIO *io, task_t task, mach_vm_add
}
}
#elif R2__BSD__
static bool bsd_proc_vmmaps(RIO *io, int pid) {
static bool bsd_proc_vmmaps(SelfData *sd, RIO *io, int pid) {
#if __FreeBSD__
size_t size;
bool ret = false;
Expand Down

0 comments on commit 37dfc3f

Please sign in to comment.