summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--ddb/db_sym.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 299d3f2..c18158f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
* include/sys/types.h (int8_t, uint8_t, u_int8_t, int16_t, uint16_t,
u_int16_t, int32_t, uint32_t, u_int32_t, int64_t, uint64_t,
u_int64_t): New types.
+ * ddb/db_sym.c (db_task_printsym): Do not print empty symbols.
2008-07-15 Barry deFreese <bddebian@comcast.net>
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index 6bf8ec2..5f8a0f4 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -450,7 +450,7 @@ db_task_printsym(off, strategy, task)
cursym = db_search_task_symbol(off, strategy, &d, task);
db_symbol_values(0, cursym, &name, &value);
- if (name == 0 || d >= db_maxoff || value == 0) {
+ if (name == 0 || d >= db_maxoff || value == 0 || *name == 0) {
db_printf("%#n", off);
return;
}