diff options
author | Greg Clayton <gclayton@apple.com> | 2012-01-12 05:25:17 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-01-12 05:25:17 +0000 |
commit | 44435ed07a3688b737813ca691c7cf78e086a6c8 (patch) | |
tree | ff29a9839c89f35cea5a5803be632f01b294936a /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h | |
parent | c7f03b6155efa4deb35d0d33f87113606e8d8394 (diff) | |
download | bcm5719-llvm-44435ed07a3688b737813ca691c7cf78e086a6c8.tar.gz bcm5719-llvm-44435ed07a3688b737813ca691c7cf78e086a6c8.zip |
Big change in the way ObjectFile file contents are managed. We now
mmap() the entire object file contents into memory with MAP_PRIVATE.
We do this because object file contents can change on us and currently
this helps alleviate this situation. It also make the code for accessing
object file data much easier to manage and we don't end up opening the
file, reading some data and closing the file over and over.
llvm-svn: 148017
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h index b1077fcc272..f4f8ce9f574 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h @@ -48,7 +48,9 @@ public: lldb::addr_t length); static bool - MagicBytesMatch (lldb::DataBufferSP& dataSP); + MagicBytesMatch (lldb::DataBufferSP& dataSP, + lldb::addr_t offset, + lldb::addr_t length); //------------------------------------------------------------------ // Member Functions |