diff options
Diffstat (limited to 'ddb/db_print.c')
-rw-r--r-- | ddb/db_print.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c index c015d84..1cbff64 100644 --- a/ddb/db_print.c +++ b/ddb/db_print.c @@ -258,7 +258,12 @@ db_print_task( } else { if (flag & OPTION_TASK_TITLE) db_printf(" TASK THREADS\n"); - db_printf("%3d (%0*X): ", task_id, 2*sizeof(vm_offset_t), task); + if (task->name[0]) + db_printf("%3d %s (%0*X): ", task_id, task->name, + 2*sizeof(vm_offset_t), task); + else + db_printf("%3d (%0*X): ", task_id, + 2*sizeof(vm_offset_t), task); if (task->thread_count == 0) { db_printf("no threads\n"); } else { |