rizin/librz/debug/p/native/bsd/bsd_debug.h
David CARLIER c913107d91
debug: generate coredump on netbsd. (#1603)
Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2021-09-07 12:08:13 +08:00

18 lines
669 B
C

// 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