summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
committerbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
commit289f11acb49b6dbb3081e09bf94a86f008f55814 (patch)
treee4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/ddb
parent4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff)
downloadFreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip
FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c13
-rw-r--r--sys/ddb/db_sym.h3
-rw-r--r--sys/ddb/ddb.h5
3 files changed, 14 insertions, 7 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 9cc2dbf..4aded1d 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.9 1995/02/05 21:09:04 phk Exp $
+ * $Id: db_command.c,v 1.10 1995/03/05 22:56:21 joerg Exp $
*/
/*
@@ -62,6 +62,9 @@ db_addr_t db_next;
boolean_t db_ed_style = TRUE;
+void db_help_cmd __P((void));
+void db_fncall __P((void));
+
/*
* Utility routine - discard tokens through end-of-line.
*/
@@ -182,7 +185,6 @@ db_command(last_cmdp, cmd_table)
modif[0] = '\0';
}
else if (t == tEXCL) {
- void db_fncall();
db_fncall();
return;
}
@@ -308,7 +310,9 @@ extern void db_show_one_thread(), db_show_all_threads();
extern void vm_page_print();
extern void db_ps();
extern void ipc_port_print();
+#if 0
void db_show_help();
+#endif
void db_panic();
struct command db_show_all_cmds[] = {
@@ -338,9 +342,6 @@ struct command db_show_cmds[] = {
{ (char *)0, }
};
-void db_help_cmd();
-void db_fncall();
-
struct command db_command_table[] = {
{ "print", db_print_cmd, 0, 0 },
{ "p", db_print_cmd, 0, 0 },
@@ -372,6 +373,7 @@ struct command db_command_table[] = {
struct command *db_last_command = 0;
+#if 0
void
db_help_cmd()
{
@@ -383,6 +385,7 @@ db_help_cmd()
cmd++;
}
}
+#endif
void
db_panic()
diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h
index 661f16b..88cd689 100644
--- a/sys/ddb/db_sym.h
+++ b/sys/ddb/db_sym.h
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_sym.h,v 1.5 1994/08/20 03:48:27 davidg Exp $
+ * $Id: db_sym.h,v 1.6 1994/09/27 03:34:57 phk Exp $
*/
#ifndef _DDB_DB_SYM_H_
@@ -97,6 +97,7 @@ extern int db_eqname(/* char*, char*, char */);
extern void db_printsym(/* db_expr_t, db_strategy_t */);
/* print closest symbol to a value */
extern boolean_t db_line_at_pc(db_sym_t, char **, int *, db_expr_t);
+extern int db_sym_numargs(db_sym_t, int *, char **);
extern int X_db_sym_numargs(db_symtab_t *, db_sym_t, int *, char **);
#endif /* _DDB_DB_SYM_H_ */
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index a72b5ca..23cfc60 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ddb.h,v 1.3 1994/09/27 12:11:09 davidg Exp $
+ * $Id: ddb.h,v 1.4 1994/09/27 12:15:56 davidg Exp $
*/
/*
@@ -105,6 +105,9 @@ extern void db_single_step (db_regs_t *regs);
extern void db_trap (int type, int code);
+extern void cnpollc(int);
+
+extern void kdb_init(void);
extern void kdbprinttrap(int, int);
#endif /* __h_ddb_ddb */
OpenPOWER on IntegriCloud