summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-01 21:35:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-01 21:35:14 +0000
commit1a0c960e776d83db52c30947c56330b135e24592 (patch)
tree957799e9e89c1855c21206567518b5d2fb3f41fd /sys/arch/i386
parent0bc30e444dd5187ce747d9153b82bde34150043f (diff)
db_sym_numargs() has always been defined to FALSE so nuke it with all
its associated dead code. ok mikeb@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/db_trace.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/arch/i386/i386/db_trace.c b/sys/arch/i386/i386/db_trace.c
index 9b7352b1d8c..920a38364dd 100644
--- a/sys/arch/i386/i386/db_trace.c
+++ b/sys/arch/i386/i386/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.17 2016/03/01 21:28:24 mpi Exp $ */
+/* $OpenBSD: db_trace.c,v 1.18 2016/03/01 21:35:13 mpi Exp $ */
/* $NetBSD: db_trace.c,v 1.18 1996/05/03 19:42:01 christos Exp $ */
/*
@@ -208,8 +208,6 @@ db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
char * name;
db_expr_t offset;
db_sym_t sym;
-#define MAXNARG 16
- char *argnames[MAXNARG], **argnp = NULL;
sym = db_search_symbol(callpc, DB_STGY_ANY, &offset);
db_symbol_values(sym, &name, NULL);
@@ -247,11 +245,7 @@ db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
} else {
normal:
is_trap = NONE;
- narg = MAXNARG;
- if (db_sym_numargs(sym, &narg, argnames))
- argnp = argnames;
- else
- narg = db_numargs(frame);
+ narg = db_numargs(frame);
}
(*pr)("%s(", name);
@@ -267,8 +261,6 @@ db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
}
while (narg) {
- if (argnp)
- (*pr)("%s=", *argnp++);
(*pr)("%x", db_get_value((int)argp, 4, FALSE));
argp++;
if (--narg != 0)