Skip to content

Commit

Permalink
Import types for freebsd ptrace
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Sep 3, 2024
1 parent 03d1d7b commit 8fdd90d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adbg/include/freebsd/ptrace.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module adbg.include.freebsd.ptrace;

version (FreeBSD):

import core.sys.posix.unistd : pid_t;
import core.sys.posix.sys.types : caddr_t;

extern (C):

enum {
Expand Down Expand Up @@ -213,6 +216,7 @@ ssize_t proc_readmem(struct thread *_td, struct proc *_p, vm_offset_t _va,
void *_buf, size_t _len);
ssize_t proc_writemem(struct thread *_td, struct proc *_p, vm_offset_t _va,
void *_buf, size_t _len);
#ifdef COMPAT_FREEBSD32
struct reg32;
struct fpreg32;
Expand All @@ -225,6 +229,7 @@ int proc_read_dbregs32(struct thread *_td, struct dbreg32 *_dbreg32);
int proc_write_dbregs32(struct thread *_td, struct dbreg32 *_dbreg32);
void ptrace_unsuspend(struct proc *p);
#endif
+/

int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data);

0 comments on commit 8fdd90d

Please sign in to comment.