summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-09-28 08:34:46 +0000
committerphk <phk@FreeBSD.org>1997-09-28 08:34:46 +0000
commit159b51570ff9514e15ce3d39fd05c2dcacbab553 (patch)
treed0ce31b1a32569fb561a21dfa145ecf44c0b5a31 /sys/ddb
parent6bef2b9623ffc3363c8a0febe33335007e420944 (diff)
downloadFreeBSD-src-159b51570ff9514e15ce3d39fd05c2dcacbab553.zip
FreeBSD-src-159b51570ff9514e15ce3d39fd05c2dcacbab553.tar.gz
Print the filename, not the directory we compiled in.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_aout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c
index 59304f4..3f7ed96 100644
--- a/sys/ddb/db_aout.c
+++ b/sys/ddb/db_aout.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_aout.c,v 1.17 1997/02/22 09:28:19 peter Exp $
+ * $Id: db_aout.c,v 1.18 1997/04/01 14:31:04 bde Exp $
*/
/*
@@ -250,7 +250,7 @@ X_db_line_at_pc(symtab, cursym, filename, linenum, off)
fname = NULL;
}
- if (sp->n_type == N_SO) {
+ if (sp->n_type == N_SO && *sp->n_un.n_name != '/') {
if (sp->n_value <= off && (off - sp->n_value) < sodiff) {
sodiff = off - sp->n_value;
fname = sp->n_un.n_name;
OpenPOWER on IntegriCloud