Module Name:    src
Committed By:   skrll
Date:           Tue Apr 14 07:59:43 UTC 2020

Modified Files:
        src/sys/arch/arm/arm32: db_machdep.c

Log Message:
Sort db_commands.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/arm32/db_machdep.c

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

Modified files:

Index: src/sys/arch/arm/arm32/db_machdep.c
diff -u src/sys/arch/arm/arm32/db_machdep.c:1.27 src/sys/arch/arm/arm32/db_machdep.c:1.28
--- src/sys/arch/arm/arm32/db_machdep.c:1.27	Wed Mar 25 06:17:23 2020
+++ src/sys/arch/arm/arm32/db_machdep.c	Tue Apr 14 07:59:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_machdep.c,v 1.27 2020/03/25 06:17:23 skrll Exp $	*/
+/*	$NetBSD: db_machdep.c,v 1.28 2020/04/14 07:59:43 skrll Exp $	*/
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.27 2020/03/25 06:17:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.28 2020/04/14 07:59:43 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -109,24 +109,26 @@ const struct db_variable db_regs[] = {
 const struct db_variable * const db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
 
 const struct db_command db_machine_command_table[] = {
+#ifdef _KERNEL
+#if defined(MULTIPROCESSOR)
+	{ DDB_ADD_CMD("cpu",	db_switch_cpu_cmd,	0,
+			"switch to a different cpu",
+		     	NULL,NULL) },
+#endif /* MULTIPROCESSOR */
+	{ DDB_ADD_CMD("fault",	db_show_fault_cmd,	0,
+			"Displays the fault registers",
+		     	NULL,NULL) },
+#endif
 	{ DDB_ADD_CMD("frame",	db_show_frame_cmd,	0,
 			"Displays the contents of a trapframe",
 			"[address]",
 			"   address:\taddress of trapfame to display")},
 #ifdef _KERNEL
-	{ DDB_ADD_CMD("fault",	db_show_fault_cmd,	0,
-			"Displays the fault registers",
-		     	NULL,NULL) },
 #if defined(CPU_CORTEXA5) || defined(CPU_CORTEXA7)
 	{ DDB_ADD_CMD("tlb",	db_show_tlb_cmd,	0,
 			"Displays the TLB",
 		     	NULL,NULL) },
 #endif
-#if defined(MULTIPROCESSOR)
-	{ DDB_ADD_CMD("cpu",	db_switch_cpu_cmd,	0,
-			"switch to a different cpu",
-		     	NULL,NULL) },
-#endif
 #endif /* _KERNEL */
 
 #ifdef ARM32_DB_COMMANDS

Reply via email to