summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
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/hppa64
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/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/db_interface.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/arch/hppa64/hppa64/db_interface.c b/sys/arch/hppa64/hppa64/db_interface.c
index e5be7659710..54bb46a9f7c 100644
--- a/sys/arch/hppa64/hppa64/db_interface.c
+++ b/sys/arch/hppa64/hppa64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.5 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: db_interface.c,v 1.6 2016/03/01 21:35:13 mpi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -213,7 +213,6 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
db_sym_t sym;
db_expr_t off;
char *name;
- char **argnp, *argnames[8];
int nargs;
if (count < 0)
@@ -244,18 +243,11 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
/* args */
nargs = 8;
- argnp = NULL;
- if (db_sym_numargs(sym, &nargs, argnames))
- argnp = argnames;
- else
- nargs = 4;
/*
* XXX first eight args are passed on registers, and may not
* be stored on stack, dunno how to recover their values yet
*/
for (argp = &fp[-9]; nargs--; argp--) {
- if (argnp)
- (*pr)("%s=", *argnp++);
(*pr)("%x%s", db_get_value((long)argp, 8, FALSE),
nargs? ",":"");
}