summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-08-27 02:39:39 +0000
committerbde <bde@FreeBSD.org>1995-08-27 02:39:39 +0000
commitaa76819f6f1db4346ca8dbccb93c7406f6a93f1d (patch)
treeb61658085d4265dc0f8f2aaecdca8eb4a082bcf0 /sys/ddb
parent32d5877021ed3ddd2a63777ec8e5b75c4270d100 (diff)
downloadFreeBSD-src-aa76819f6f1db4346ca8dbccb93c7406f6a93f1d.zip
FreeBSD-src-aa76819f6f1db4346ca8dbccb93c7406f6a93f1d.tar.gz
Change db_fncall() and db_panic() to have the correct number and type of
args for a ddb command.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index c52238a..5db69d4 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.12 1995/03/19 14:28:28 davidg Exp $
+ * $Id: db_command.c,v 1.13 1995/05/30 07:56:52 rgrimes Exp $
*/
/*
@@ -63,7 +63,7 @@ boolean_t db_ed_style = TRUE;
void db_help_cmd __P((void));
-void db_fncall __P((void));
+void db_fncall __P((db_expr_t, boolean_t, db_expr_t, char *));
/*
* Utility routine - discard tokens through end-of-line.
@@ -185,7 +185,7 @@ db_command(last_cmdp, cmd_table)
modif[0] = '\0';
}
else if (t == tEXCL) {
- db_fncall();
+ db_fncall((db_expr_t)0, (boolean_t)0, (db_expr_t)0, (char *)0);
return;
}
else if (t != tIDENT) {
@@ -388,7 +388,11 @@ db_help_cmd()
#endif
void
-db_panic()
+db_panic(dummy1, dummy2, dummy3, dummy4)
+ db_expr_t dummy1;
+ boolean_t dummy2;
+ db_expr_t dummy3;
+ char * dummy4;
{
panic("from debugger");
}
@@ -432,7 +436,11 @@ db_error(s)
* !expr(arg,arg,arg)
*/
void
-db_fncall()
+db_fncall(dummy1, dummy2, dummy3, dummy4)
+ db_expr_t dummy1;
+ boolean_t dummy2;
+ db_expr_t dummy3;
+ char * dummy4;
{
db_expr_t fn_addr;
#define MAXARGS 11
OpenPOWER on IntegriCloud