// SPDX-FileCopyrightText: 2009-2019 pancake <pancake@nopcode.org>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _BSD_DEBUG_H
#define _BSD_DEBUG_H
#include <rz_debug.h>
#include <sys/ptrace.h>
#define RZ_DEBUG_REG_T struct reg

int bsd_handle_signals(RzDebug *dbg);
int bsd_reg_write(RzDebug *dbg, int type, const ut8 *buf, int size);
RzDebugInfo *bsd_info(RzDebug *dbg, const char *arg);
bool bsd_generate_corefile(RzDebug *dbg, char *path, RzBuffer *dest);
RzList *bsd_pid_list(RzDebug *dbg, int pid, RzList *list);
RzList *bsd_native_sysctl_map(RzDebug *dbg);
RzList *bsd_desc_list(int pid);
RzList *bsd_thread_list(RzDebug *dbg, int pid, RzList *list);
#endif
