diff options
author | Jim Ingham <jingham@apple.com> | 2011-06-20 17:32:44 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-06-20 17:32:44 +0000 |
commit | f72ce3a216ea4364724dff20955e3d9b63977fdc (patch) | |
tree | c2b330455f71b47f3e64007377d690ed3c4ab9e1 /lldb/source/Target/Process.cpp | |
parent | e8ae1db4d87cd6de44c19e59f6a6c61e4c957dd3 (diff) | |
download | bcm5719-llvm-f72ce3a216ea4364724dff20955e3d9b63977fdc.tar.gz bcm5719-llvm-f72ce3a216ea4364724dff20955e3d9b63977fdc.zip |
Use the dyld_mode, image_infos & image_infos_count passed into the shared library notification function
to update libraries rather than reading the whole all_imaage_infos structure every time we get notified.
llvm-svn: 133448
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 19a10576bd1..79310dd11ad 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1897,6 +1897,9 @@ Process::ReadScalarIntegerFromMemory (addr_t addr, addr_t Process::AllocateMemory(size_t size, uint32_t permissions, Error &error) { + if (GetPrivateState() != eStateStopped) + return LLDB_INVALID_ADDRESS; + #if defined (USE_ALLOCATE_MEMORY_CACHE) return m_allocated_memory_cache.AllocateMemory(size, permissions, error); #else |