diff options
| author | Jim Ingham <jingham@apple.com> | 2012-03-09 21:09:42 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-03-09 21:09:42 +0000 |
| commit | 329617a80a093dded2fae5a5b6988c3dc56ee735 (patch) | |
| tree | 2918030363304f30a1ab73a728d9559d2eeab977 /lldb/tools/debugserver/source | |
| parent | b7d1ca27bd3dfbd6821d60825f4af5724fd8f63d (diff) | |
| download | bcm5719-llvm-329617a80a093dded2fae5a5b6988c3dc56ee735.tar.gz bcm5719-llvm-329617a80a093dded2fae5a5b6988c3dc56ee735.zip | |
Make debugserver quieter about memory read errors.
<rdar://problem/10681220>
llvm-svn: 152438
Diffstat (limited to 'lldb/tools/debugserver/source')
| -rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp index c3c66f84b2e..1fe97167c6d 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp @@ -104,9 +104,7 @@ MachVMMemory::Read(task_t task, nub_addr_t address, void *data, nub_size_t data_ vm_offset_t vm_memory = NULL; m_err = ::mach_vm_read (task, curr_addr, curr_size, &vm_memory, &curr_bytes_read); - // We end up being asked to read memory at 0x0 a lot without that being a real error, so that ends up just - // causing a lot of useless log spam. Only complain on failing reads if the address is not 0x0. - if (DNBLogCheckLogBit(LOG_MEMORY) || (m_err.Fail() && curr_addr != 0)) + if (DNBLogCheckLogBit(LOG_MEMORY)) m_err.LogThreaded("::mach_vm_read ( task = 0x%4.4x, addr = 0x%8.8llx, size = %llu, data => %8.8p, dataCnt => %i )", task, (uint64_t)curr_addr, (uint64_t)curr_size, vm_memory, curr_bytes_read); if (m_err.Success()) |

