Module Name:    src
Committed By:   rin
Date:           Sun May 31 09:51:55 UTC 2020

Modified Files:
        src/sys/ddb: db_command.h ddb.h
Removed Files:
        src/sys/ddb: db_alloc.h

Log Message:
Revert introduction of db_alloc.h.

db_alloc() and friends are already provided in crash.c.
Sorry for confusing you...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/sys/ddb/db_alloc.h
cvs rdiff -u -r1.37 -r1.38 src/sys/ddb/db_command.h
cvs rdiff -u -r1.4 -r1.5 src/sys/ddb/ddb.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ddb/db_command.h
diff -u src/sys/ddb/db_command.h:1.37 src/sys/ddb/db_command.h:1.38
--- src/sys/ddb/db_command.h:1.37	Sun May 31 09:40:09 2020
+++ src/sys/ddb/db_command.h	Sun May 31 09:51:55 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_command.h,v 1.37 2020/05/31 09:40:09 rin Exp $	*/
+/*	$NetBSD: db_command.h,v 1.38 2020/05/31 09:51:55 rin Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -144,6 +144,10 @@ struct db_command {
 #endif
 };
 
+void	*db_alloc(size_t);
+void	*db_zalloc(size_t);
+void	db_free(void *, size_t);
+
 #ifndef _KERNEL
 #define db_kernelonly() \
     db_printf("%s: can only be used in-kernel.\n", __func__)

Index: src/sys/ddb/ddb.h
diff -u src/sys/ddb/ddb.h:1.4 src/sys/ddb/ddb.h:1.5
--- src/sys/ddb/ddb.h:1.4	Sun May 31 09:40:09 2020
+++ src/sys/ddb/ddb.h	Sun May 31 09:51:55 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: ddb.h,v 1.4 2020/05/31 09:40:09 rin Exp $	*/
+/*	$NetBSD: ddb.h,v 1.5 2020/05/31 09:51:55 rin Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -50,6 +50,5 @@
 #include <ddb/db_proc.h>
 #include <ddb/db_cpu.h>
 #include <ddb/db_autoconf.h>
-#include <ddb/db_alloc.h>
 
 #endif	/* _DDB_DDB_H_ */

Reply via email to