[Lldb-commits] [lldb] r178954 - Add optional LOG_TASK logging for MachVMMemory::PageSize() task_info call failure.
Jason Molenda
jmolenda at apple.com
Sat Apr 6 00:26:59 PDT 2013
Author: jmolenda
Date: Sat Apr 6 02:26:59 2013
New Revision: 178954
URL: http://llvm.org/viewvc/llvm-project?rev=178954&view=rev
Log:
Add optional LOG_TASK logging for MachVMMemory::PageSize() task_info call failure.
Modified:
lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp
Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp?rev=178954&r1=178953&r2=178954&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp Sat Apr 6 02:26:59 2013
@@ -44,6 +44,10 @@ MachVMMemory::PageSize(task_t task)
{
return vm_info.page_size;
}
+ else
+ {
+ DNBLogThreadedIf(LOG_TASK, "MachVMMemory::PageSize task_info call failed to get page size, TASK_VM_INFO %d, TASK_VM_INFO_COUNT %d, kern return %d", TASK_VM_INFO, TASK_VM_INFO_COUNT, kr);
+ }
}
#endif
m_err = ::host_page_size( ::mach_host_self(), &m_page_size);
More information about the lldb-commits
mailing list