From e6755952892703d842372be5593deb0e1f3dfbed Mon Sep 17 00:00:00 2001 From: ragge Date: Thu, 24 Apr 2003 21:18:34 +0000 Subject: [PATCH] db_sym_numargs() disappeared by mistake, restore it. --- sys/ddb/db_sym.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 9dec2361a1c5..efc7849d623c 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_sym.c,v 1.35 2003/04/24 20:00:48 ragge Exp $ */ +/* $NetBSD: db_sym.c,v 1.36 2003/04/24 21:18:34 ragge Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.35 2003/04/24 20:00:48 ragge Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.36 2003/04/24 21:18:34 ragge Exp $"); #include "opt_ddbparam.h" @@ -420,3 +420,15 @@ db_symsplit(char *str, char **mod, char **sym) *sym = str; } } + +boolean_t +db_sym_numargs(db_sym_t cursym, int *nargp, char **argnamep) +{ +#ifdef DB_AOUT_SYMBOLS + if (using_aout_symtab) + return ((*db_symformat->sym_numargs)(NULL, cursym, nargp, + argnamep)); +#endif + return (FALSE); +} +