From 8dedb348f34b6ea68a8e7b1e905784762677b359 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Mon, 20 Jan 2020 15:58:24 +0000 Subject: 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@ --- sys/ddb/db_access.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sys/ddb/db_access.h') 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 *); -- cgit v1.2.3