summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-09 02:07:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-09 02:07:06 +0000
commit8bab8c53ee92b388ef044ba555ec0b8beb2da64b (patch)
tree513069be52036121ae378c9729ed83cf818d6169 /sys
parentf119664e229a31cd2de3ccf5c2147e40b6dc941f (diff)
protos, includes, spaces
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/include/db_machdep.h21
-rw-r--r--sys/arch/powerpc/powerpc/db_trace.c23
2 files changed, 24 insertions, 20 deletions
diff --git a/sys/arch/powerpc/include/db_machdep.h b/sys/arch/powerpc/include/db_machdep.h
index 3656e4a39f6..111ae276558 100644
--- a/sys/arch/powerpc/include/db_machdep.h
+++ b/sys/arch/powerpc/include/db_machdep.h
@@ -1,29 +1,29 @@
-/* $OpenBSD: db_machdep.h,v 1.9 2001/07/08 23:23:53 mickey Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.10 2001/07/09 02:07:05 mickey Exp $ */
/* $NetBSD: db_machdep.h,v 1.13 1996/04/29 20:50:08 leo Exp $ */
-/*
+/*
* Mach Operating System
* Copyright (c) 1992 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
+ *
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
- *
+ *
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
+ *
+ * any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
@@ -97,8 +97,9 @@ db_regs_t ddb_regs; /* register state */
void kdb_kintr __P((void *));
int kdb_trap __P((int, void *));
-void db_save_regs(struct trapframe *frame);
-void ddb_trap __P((void));
+void db_save_regs(struct trapframe *frame);
+void ddb_trap __P((void));
+db_expr_t db_dumpframe __P((u_int32_t pframe));
#endif /* _KERNEL */
diff --git a/sys/arch/powerpc/powerpc/db_trace.c b/sys/arch/powerpc/powerpc/db_trace.c
index 32c94f83213..a0cf20f4c2a 100644
--- a/sys/arch/powerpc/powerpc/db_trace.c
+++ b/sys/arch/powerpc/powerpc/db_trace.c
@@ -1,33 +1,34 @@
-/* $OpenBSD: db_trace.c,v 1.9 2001/06/25 23:30:02 drahn Exp $ */
+/* $OpenBSD: db_trace.c,v 1.10 2001/07/09 02:07:05 mickey Exp $ */
/* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */
-/*
+/*
* Mach Operating System
* Copyright (c) 1992 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
+ *
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
- *
+ *
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
+ *
+ * any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/proc.h>
#include <machine/db_machdep.h>
@@ -36,8 +37,10 @@
#include <ddb/db_access.h>
#include <ddb/db_sym.h>
#include <ddb/db_variables.h>
+#include <ddb/db_interface.h>
+#include <ddb/db_output.h>
-struct db_variable db_regs[] = {
+struct db_variable db_regs[] = {
{ "r0", (long *)&(DDB_REGS->tf.fixreg[0]), FCN_NULL },
{ "r1", (long *)&(DDB_REGS->tf.fixreg[1]), FCN_NULL },
{ "r2", (long *)&(DDB_REGS->tf.fixreg[2]), FCN_NULL },
@@ -92,7 +95,7 @@ db_save_regs(struct trapframe *frame)
db_expr_t
-db_dumpframe (u_int32_t pframe)
+db_dumpframe(u_int32_t pframe)
{
u_int32_t nextframe;
u_int32_t lr;