diff options
author | dg <dg@FreeBSD.org> | 1995-05-22 13:07:12 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-05-22 13:07:12 +0000 |
commit | 4c238c72a8d8fa175abe4d6d7acc730f42d65846 (patch) | |
tree | 36a72ed1950b3c2554f658107e6c61bad4c24516 /sys/ddb | |
parent | ac00cc595d1f401bd000d18837307e0ed056acf3 (diff) | |
download | FreeBSD-src-4c238c72a8d8fa175abe4d6d7acc730f42d65846.zip FreeBSD-src-4c238c72a8d8fa175abe4d6d7acc730f42d65846.tar.gz |
Print the address associated with an examine. Changed db_maxoff to
something more reasonable (64k). Suggested by Gordon Ross about a
year ago.
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_examine.c | 15 | ||||
-rw-r--r-- | sys/ddb/db_sym.c | 4 |
2 files changed, 6 insertions, 13 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c index 9d3924b..48334ba 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 0fd37f4..57329d6 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) |