From cf92f179713a09cf2fee6b23d0e9c24c41fc91e8 Mon Sep 17 00:00:00 2001 From: niklas Date: Sat, 19 Jul 1997 22:28:57 +0000 Subject: Make SOFTWARE_SSTEP compile with strict prototyping --- sys/ddb/db_run.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/ddb/db_run.h b/sys/ddb/db_run.h index 71d2c00ba04..2446ef1d438 100644 --- a/sys/ddb/db_run.h +++ b/sys/ddb/db_run.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_run.h,v 1.4 1996/04/21 22:19:12 deraadt Exp $ */ +/* $OpenBSD: db_run.h,v 1.5 1997/07/19 22:28:57 niklas Exp $ */ /* $NetBSD: db_run.h,v 1.3 1996/02/05 01:57:14 christos Exp $ */ /* @@ -54,4 +54,14 @@ void db_trace_until_call_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_trace_until_matching_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_continue_cmd __P((db_expr_t, int, db_expr_t, char *)); +#ifdef SOFTWARE_SSTEP +/* + * I've seen this defined to (0) when it is not needed and then the proto will + * not be correct, so skip it then. + */ +#ifndef getreg_val +extern register_t getreg_val __P((db_regs_t *, int)); +#endif +#endif /* SOFTWARE_SSTEP */ + #endif _DDB_DB_RUN_ -- cgit v1.2.3-59-g8ed1b