| 320 | } |
| 321 | |
| 322 | vm_map_t |
| 323 | db_map_addr(vm_offset_t addr) |
| 324 | { |
| 325 | #if 0 |
| 326 | thread_t thread; |
| 327 | |
| 328 | /* |
| 329 | * We want to return kernel_map for all |
| 330 | * non-user addresses, even when debugging |
| 331 | * kernel tasks with their own maps. |
| 332 | */ |
| 333 | |
| 334 | if ((VM_MIN_ADDRESS <= addr) && |
| 335 | (addr < VM_MAX_ADDRESS) && |
| 336 | ((thread = current_thread()) != NULL)) |
| 337 | return thread->task->map; |
| 338 | else |
| 339 | #endif |
| 340 | return kernel_map; |
| 341 | } |
no outgoing calls
no test coverage detected