summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/ddb/db_examine.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c
index eba6151..fc4f472 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -166,6 +166,12 @@ db_examine(addr, fmt, count)
db_printf("\\%03o", (int)value);
}
break;
+ case 'S': /* symbol */
+ value = db_get_value(addr, sizeof(void *),
+ FALSE);
+ addr += sizeof(void *);
+ db_printsym(value, DB_STGY_ANY);
+ break;
case 'i': /* instruction */
addr = db_disasm(addr, FALSE);
break;
OpenPOWER on IntegriCloud