summaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-05-22 13:07:12 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-05-22 13:07:12 +0000
commit751b0b8e1035716bf05a9e4db33e0b9f36149e8f (patch)
tree36a72ed1950b3c2554f658107e6c61bad4c24516 /sys/ddb
parent956455631cc48e19327b53f79cbd43f02ec2cfa8 (diff)
Notes
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_examine.c15
-rw-r--r--sys/ddb/db_sym.c4
2 files changed, 6 insertions, 13 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c
index 9d3924bd7154..48334bafd07e 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_examine.c,v 1.5 1994/08/13 03:49:17 wollman Exp $
+ * $Id: db_examine.c,v 1.6 1994/08/18 22:34:22 wollman Exp $
*/
/*
@@ -108,16 +108,9 @@ db_examine(addr, fmt, count)
break;
default:
if (db_print_position() == 0) {
- /* If we hit a new symbol, print it */
- char * name;
- db_expr_t off;
-
- db_find_sym_and_offset(addr, &name, &off);
- if (off == 0)
- db_printf("%s:\t", name);
- else
- db_printf("\t\t");
-
+ /* Print the address. */
+ db_printsym(addr, DB_STGY_ANY);
+ db_printf(":\t");
db_prev = addr;
}
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 0fd37f4a0c20..57329d6deb40 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_sym.c,v 1.6 1994/08/20 03:48:26 davidg Exp $
+ * $Id: db_sym.c,v 1.7 1994/09/27 03:34:57 phk Exp $
*/
/*
@@ -281,7 +281,7 @@ db_symbol_values(sym, namep, valuep)
* not accept symbols whose value is zero (and use plain hex).
*/
-unsigned int db_maxoff = 0x10000000;
+unsigned int db_maxoff = 0x10000;
void
db_printsym(off, strategy)