diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-18 04:45:21 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-18 04:45:21 +0000 |
commit | 5a605a79f4c28e5941a2d7ddae133f41be01943b (patch) | |
tree | 29dae8806a28879901fbcd50c1f3535ed6a8f24d /sys/arch/sparc64 | |
parent | 65e97594bd9ffe2fd77966373c16eb0015a4f2ae (diff) |
Sync existing stacktrace_save() implementations
Upgrade stacktrace_save() to stacktrace_save_at() on architectures where
the latter is missing. Define stacktrace_save() as an inline function
in header <sys/stacktrace.h> to reduce duplication of code.
OK mpi@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/db_trace.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/sparc64/sparc64/db_trace.c b/sys/arch/sparc64/sparc64/db_trace.c index ac224f718c7..6a6bccd2512 100644 --- a/sys/arch/sparc64/sparc64/db_trace.c +++ b/sys/arch/sparc64/sparc64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.21 2020/03/25 14:59:23 mpi Exp $ */ +/* $OpenBSD: db_trace.c,v 1.22 2020/04/18 04:45:20 visa Exp $ */ /* $NetBSD: db_trace.c,v 1.23 2001/07/10 06:06:16 eeh Exp $ */ /* @@ -189,12 +189,6 @@ stacktrace_save_at(struct stacktrace *st, unsigned int skip) } void -stacktrace_save(struct stacktrace *st) -{ - return stacktrace_save_at(st, 0); -} - -void db_dump_window(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { int i; |