diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-05-15 23:56:52 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-05-15 23:56:52 +0000 |
| commit | 1cfca1dc090416bd681508d3a3d8de0e1fa83e7d (patch) | |
| tree | 9b0748fbecde5aa76ba9b355d044514751a1f913 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
| parent | 17a0cb68c97eb551e50431470d68ab17b58e9ccc (diff) | |
| download | llvm-1cfca1dc090416bd681508d3a3d8de0e1fa83e7d.zip llvm-1cfca1dc090416bd681508d3a3d8de0e1fa83e7d.tar.gz llvm-1cfca1dc090416bd681508d3a3d8de0e1fa83e7d.tar.bz2 | |
Dump JIT memory requirements when "log enable lldb expr" logging is enabled.
Correctly handle invalid 32-bit mmap fail return value in ProcessGDBRemote.
llvm-svn: 131394
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 172a1cf..9564624 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1637,7 +1637,13 @@ ProcessGDBRemote::DoAllocateMemory (size_t size, uint32_t permissions, Error &er if (result == eExecutionCompleted) { allocated_addr = return_value_sp->GetScalar().ULongLong(); - m_addr_to_mmap_size[allocated_addr] = size; + if (GetAddressByteSize() == 4) + { + if (allocated_addr == UINT32_MAX) + allocated_addr = LLDB_INVALID_ADDRESS; + } + if (allocated_addr != LLDB_INVALID_ADDRESS) + m_addr_to_mmap_size[allocated_addr] = size; } } } |
