aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-09-28 08:34:46 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-09-28 08:34:46 +0000
commitc69c1d52e96aea46b8a1346ac60d8f11f46ad461 (patch)
tree7416a64c1498077fdccf13dce54db4179a812432 /sys/ddb
parent8a7ad3adf7217da0d06aa9962c32100414c4c04a (diff)
downloadsrc-c69c1d52e96aea46b8a1346ac60d8f11f46ad461.tar.gz
src-c69c1d52e96aea46b8a1346ac60d8f11f46ad461.zip
Print the filename, not the directory we compiled in.
Notes
Notes: svn path=/head/; revision=29915
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 59304f465539..3f7ed96fa576 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;