summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-04 02:51:35 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-04 02:51:35 +0000
commita154259e1ebd6ed7ee3d364c984669594735c226 (patch)
treeecac1c04bc10d04e68b7fb1f4f09e23016b63185 /sys/arch/amd64
parent46db896ff4cd5000d9d80c8a69837d0d342e320f (diff)
Leave out an unnecessary symbol lookup.
OK guenther@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/db_trace.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/db_trace.c b/sys/arch/amd64/amd64/db_trace.c
index e8ec7a3f60e..e48b78574d4 100644
--- a/sys/arch/amd64/amd64/db_trace.c
+++ b/sys/arch/amd64/amd64/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.40 2018/04/27 08:14:15 guenther Exp $ */
+/* $OpenBSD: db_trace.c,v 1.41 2018/05/04 02:51:34 visa Exp $ */
/* $NetBSD: db_trace.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */
/*
@@ -268,13 +268,7 @@ db_save_stack_trace(struct db_stack_trace *st)
lastframe = NULL;
for (i = 0; i < DB_STACK_TRACE_MAX && frame != NULL; i++) {
- char *name;
- db_expr_t offset;
- Elf_Sym * sym;
-
st->st_pc[st->st_count++] = callpc;
- sym = db_search_symbol(callpc, DB_STGY_ANY, &offset);
- db_symbol_values(sym, &name, NULL);
lastframe = frame;
callpc = frame->f_retaddr;