summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-02-05 21:09:04 +0000
committerphk <phk@FreeBSD.org>1995-02-05 21:09:04 +0000
commitdf28946018b5dcd2d04179d225d86b59b1712612 (patch)
tree42c0605c5b197843ae98831a5319a75db02f9cc3 /sys/ddb
parent184bec765aac624f0470893fc81e0ec11590fa39 (diff)
downloadFreeBSD-src-df28946018b5dcd2d04179d225d86b59b1712612.zip
FreeBSD-src-df28946018b5dcd2d04179d225d86b59b1712612.tar.gz
Added "panic" command to ddb, so we can do something sensible even if
we have no symbols.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 04793c9..34f435c 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_command.c,v 1.7 1994/08/18 22:34:20 wollman Exp $
+ * $Id: db_command.c,v 1.8 1994/08/27 16:14:08 davidg Exp $
*/
/*
@@ -309,6 +309,7 @@ extern void vm_page_print();
extern void db_ps();
extern void ipc_port_print();
void db_show_help();
+void db_panic();
struct command db_show_all_cmds[] = {
#if 0
@@ -364,6 +365,7 @@ struct command db_command_table[] = {
{ "call", db_fncall, CS_OWN, 0 },
{ "show", 0, 0, db_show_cmds },
{ "ps", db_ps, 0, 0 },
+ { "panic", db_panic, 0, 0 },
{ (char *)0, }
};
@@ -382,6 +384,12 @@ db_help_cmd()
}
void
+db_panic()
+{
+ panic("from debugger\n");
+}
+
+void
db_command_loop()
{
/*
OpenPOWER on IntegriCloud