summaryrefslogtreecommitdiff
path: root/sys/ddb/db_access.h
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-01-20 15:58:24 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-01-20 15:58:24 +0000
commit8dedb348f34b6ea68a8e7b1e905784762677b359 (patch)
treebe188db04b4562a8245c9d11553406df9fced9f5 /sys/ddb/db_access.h
parent562bc692fe4670bfd2a4b5ec728fb5f5f41bbc00 (diff)
Separate the stack trace saving interface from ddb. The saving does not
require the debugger on most architectures, and the separation makes the code easier to use from other subsystems. The function definitions are still conditional to DDB. However, that should not matter for now. OK deraadt@, mpi@
Diffstat (limited to 'sys/ddb/db_access.h')
-rw-r--r--sys/ddb/db_access.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/ddb/db_access.h b/sys/ddb/db_access.h
index fc57b75b3b7..7a352079828 100644
--- a/sys/ddb/db_access.h
+++ b/sys/ddb/db_access.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_access.h,v 1.10 2019/11/07 13:16:25 mpi Exp $ */
+/* $OpenBSD: db_access.h,v 1.11 2020/01/20 15:58:23 visa Exp $ */
/* $NetBSD: db_access.h,v 1.6 1994/10/09 08:29:57 mycroft Exp $ */
/*
@@ -38,13 +38,3 @@ void db_put_value(vaddr_t, size_t, db_expr_t);
void db_read_bytes(vaddr_t, size_t, char *);
void db_write_bytes(vaddr_t, size_t, char *);
-
-#define DB_STACK_TRACE_MAX 19
-
-struct db_stack_trace {
- unsigned int st_count;
- vaddr_t st_pc[DB_STACK_TRACE_MAX];
-};
-
-void db_print_stack_trace(struct db_stack_trace *, int (*)(const char *, ...));
-void db_save_stack_trace(struct db_stack_trace *);