]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ddb/db_print.c
xnu-517.tar.gz
[apple/xnu.git] / osfmk / ddb / db_print.c
index bbb0fb10f70ffee3f685194412b2b828c799396f..29b5bea6b79b328f3c531a241915b42e99f0b172 100644 (file)
@@ -190,7 +190,7 @@ db_show_regs(
                                12-strlen(regp->name)-((i<10)?1:2), "");
                else
                    db_printf("%-12s", regp->name);
-               db_printf("%#*N", 2+2*sizeof(vm_offset_t), value);
+               db_printf("%#*llN", 2+2*sizeof(db_expr_t), value);
                db_find_xtrn_task_sym_and_offset((db_addr_t)value, &name, 
                                                        &offset, task);
                if (name != 0 && offset <= db_maxoff && offset != value) {
@@ -434,7 +434,7 @@ db_print_task(
            db_printf("%3d: %0*X %0*X %3d %3d %3d %2d %c  ",
                            task_id, 2*sizeof(vm_offset_t), task,
                            2*sizeof(vm_offset_t), task->map,
-                           task->thr_act_count, task->res_act_count,
+                           task->thread_count, task->res_thread_count,
                            task->suspend_count,
                            task->priority,
                            sstate);
@@ -443,10 +443,10 @@ db_print_task(
                if (flag & OPTION_TASK_TITLE)
                    flag |= OPTION_THREAD_TITLE;
                db_printf("\n");
-           } else if (task->thr_act_count <= 1)
+           } else if (task->thread_count <= 1)
                flag &= ~OPTION_INDENT;
            act_id = 0;
-           queue_iterate(&task->thr_acts, thr_act, thread_act_t, thr_acts) {
+           queue_iterate(&task->threads, thr_act, thread_act_t, task_threads) {
                db_print_act(thr_act, act_id, flag);
                flag &= ~OPTION_THREAD_TITLE;
                act_id++;
@@ -457,22 +457,22 @@ db_print_task(
            if (flag & OPTION_LONG) {
                if (flag & OPTION_TASK_TITLE) {
                    db_printf("    TASK        ACT\n");
-                   if (task->thr_act_count > 1)
+                   if (task->thread_count > 1)
                        flag |= OPTION_THREAD_TITLE;
                }
            }
            db_printf("%3d (%0*X): ", task_id, 2*sizeof(vm_offset_t), task);
-           if (task->thr_act_count == 0) {
+           if (task->thread_count == 0) {
                db_printf("no threads\n");
            } else {
-               if (task->thr_act_count > 1) {
-                   db_printf("%d threads: \n", task->thr_act_count);
+               if (task->thread_count > 1) {
+                   db_printf("%d threads: \n", task->thread_count);
                    flag |= OPTION_INDENT;
                } else
                    flag &= ~OPTION_INDENT;
                act_id = 0;
-               queue_iterate(&task->thr_acts, thr_act,
-                             thread_act_t, thr_acts) {
+               queue_iterate(&task->threads, thr_act,
+                             thread_act_t, task_threads) {
                    db_print_act(thr_act, act_id++, flag);
                    flag &= ~OPTION_THREAD_TITLE;
                }
@@ -487,7 +487,7 @@ db_print_space(
        int     flag)
 {
        ipc_space_t space;
-       thread_act_t act = (thread_act_t)queue_first(&task->thr_acts);
+       thread_act_t act = (thread_act_t)queue_first(&task->threads);
        int count;
 
        count = 0;
@@ -722,7 +722,7 @@ db_show_one_act(
            thr_act = (thread_act_t) addr;
 
        if ((act_id = db_lookup_act(thr_act)) < 0) {
-           db_printf("bad thr_act address %#x\n", addr);
+           db_printf("bad thr_act address %#llX\n", addr);
            db_error(0);
            /*NOTREACHED*/
        }
@@ -774,7 +774,7 @@ db_show_one_task(
            task = (task_t) addr;
 
        if ((task_id = db_lookup_task(task)) < 0) {
-           db_printf("bad task address 0x%x\n", addr);
+           db_printf("bad task address 0x%llX\n", addr);
            db_error(0);
            /*NOTREACHED*/
        }
@@ -789,11 +789,11 @@ db_show_shuttle(
        db_expr_t       count,
        char *          modif)
 {
-       thread_shuttle_t        shuttle;
+       thread_t                        shuttle;
        thread_act_t            thr_act;
 
        if (have_addr)
-           shuttle = (thread_shuttle_t) addr;
+           shuttle = (thread_t) addr;
        else {
            thr_act = current_act();
            if (thr_act == THR_ACT_NULL) {
@@ -972,7 +972,7 @@ db_show_port_id(
        } else
            thr_act = (thread_act_t) addr;
        if (db_lookup_act(thr_act) < 0) {
-           db_printf("Bad thr_act address 0x%x\n", addr);
+           db_printf("Bad thr_act address 0x%llX\n", addr);
            db_error(0);
            /*NOTREACHED*/
        }