]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ddb/db_trap.c
xnu-792.24.17.tar.gz
[apple/xnu.git] / osfmk / ddb / db_trap.c
index 2fcca75ba689a15661f9d687344d174b5d056329..59a007cdfdd3b3cf006cd8ff2413df8eb99e1d3d 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -76,10 +76,6 @@ extern int           db_inst_count;
 extern int             db_load_count;
 extern int             db_store_count;
 
 extern int             db_load_count;
 extern int             db_store_count;
 
-#if    PARAGON860 && NCPUS > 1
-extern int     db_first_cpu;
-#endif
-
 void
 db_task_trap(
        int             type,
 void
 db_task_trap(
        int             type,
@@ -94,7 +90,7 @@ db_task_trap(
        task_t          task_space;
 
        task = db_current_task();
        task_t          task_space;
 
        task = db_current_task();
-       task_space = db_target_space(current_act(), user_space);
+       task_space = db_target_space(current_thread(), user_space);
        bkpt = IS_BREAKPOINT_TRAP(type, code);
        watchpt = IS_WATCHPOINT_TRAP(type, code);
 
        bkpt = IS_BREAKPOINT_TRAP(type, code);
        watchpt = IS_WATCHPOINT_TRAP(type, code);
 
@@ -132,7 +128,7 @@ db_task_trap(
 #endif /* __ppc__ */
 #endif /* defined(__alpha) */
            } else
 #endif /* __ppc__ */
 #endif /* defined(__alpha) */
            } else
-               db_printf("Trouble printing location %#X.\n", db_dot);
+               db_printf("Trouble printing location %#llX.\n", (unsigned long long)db_dot);
            db_recover = prev;
 
            db_command_loop();
            db_recover = prev;
 
            db_command_loop();