From 751b0b8e1035716bf05a9e4db33e0b9f36149e8f Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 22 May 1995 13:07:12 +0000 Subject: [PATCH] Print the address associated with an examine. Changed db_maxoff to something more reasonable (64k). Suggested by Gordon Ross about a year ago. --- sys/ddb/db_examine.c | 15 ++++----------- 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 9d3924bd715..48334bafd07 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 0fd37f4a0c2..57329d6deb4 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)