summaryrefslogtreecommitdiff
path: root/regress/sys/arch/amd64/ddb/disasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/arch/amd64/ddb/disasm.h')
-rw-r--r--regress/sys/arch/amd64/ddb/disasm.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/regress/sys/arch/amd64/ddb/disasm.h b/regress/sys/arch/amd64/ddb/disasm.h
new file mode 100644
index 00000000000..7130ef6d0df
--- /dev/null
+++ b/regress/sys/arch/amd64/ddb/disasm.h
@@ -0,0 +1,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;