blob: 7130ef6d0dfbdc5623dd580ddc9e3336d2d59ba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* $OpenBSD: disasm.h,v 1.1 2024/11/19 05:50:41 anton Exp $ */
#include <sys/types.h> /* vaddr_t */
#include <stddef.h> /* size_t */
#include <stdint.h>
struct db_disasm_context {
struct {
const uint8_t *buf;
size_t len;
} raw;
struct {
char buf[128];
size_t siz;
size_t len;
} act;
};
vaddr_t db_disasm(vaddr_t, int);
extern struct db_disasm_context *ctx;
|