summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2017-05-27 16:08:23 +0000
committerclaudio <claudio@openbsd.org>2017-05-27 16:08:23 +0000
commit4da10c57a0bb397b1979140c2a94b37896107ad3 (patch)
tree00953c1c6ed6f28dfef82f3ab95958c67dc2aaec
parentDo not connect to cvs.openbsd.org in regress. Run on loopback to (diff)
downloadwireguard-openbsd-4da10c57a0bb397b1979140c2a94b37896107ad3.tar.xz
wireguard-openbsd-4da10c57a0bb397b1979140c2a94b37896107ad3.zip
Make ddb print again filename and linenumber if a bsd.gdb was loaded.
mpi@ agrees that this is correct.
-rw-r--r--sys/ddb/db_sym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 400d701dafd..a3506c2edc1 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_sym.c,v 1.51 2016/03/07 11:26:43 mpi Exp $ */
+/* $OpenBSD: db_sym.c,v 1.52 2017/05/27 16:08:23 claudio Exp $ */
/* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */
/*
@@ -155,7 +155,7 @@ db_printsym(db_expr_t off, db_strategy_t strategy,
(*pr)("+%s", db_format(buf, sizeof(buf),
d, DB_FORMAT_R, 1, 0));
}
- if (strategy != DB_STGY_PROC) {
+ if (strategy == DB_STGY_PROC) {
if (db_elf_line_at_pc(cursym, &filename,
&linenum, off))
(*pr)(" [%s:%d]", filename, linenum);