Add optional LOG_TASK logging for MachVMMemory::PageSize when the call succeeds,...
authorJason Molenda <jmolenda@apple.com>
Sat, 6 Apr 2013 07:28:38 +0000 (07:28 +0000)
committerJason Molenda <jmolenda@apple.com>
Sat, 6 Apr 2013 07:28:38 +0000 (07:28 +0000)
llvm-svn: 178955

lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp

index 2d2c5b1..0b47c63 100644 (file)
@@ -42,6 +42,7 @@ MachVMMemory::PageSize(task_t task)
             kr = task_info (task, TASK_VM_INFO, (task_info_t) &vm_info, &info_count);
             if (kr == KERN_SUCCESS)
             {
+                DNBLogThreadedIf(LOG_TASK, "MachVMMemory::PageSize task_info returned page size of 0x%x", (int) vm_info.page_size);
                 return vm_info.page_size;
             }
             else