History log of /external/lldb/include/lldb/Host/File.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1c52f53b131537899c4ec04aa531e81979e1b544 23-May-2013 Greg Clayton <gclayton@apple.com> Cleaned up the File API a bit.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182538 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
36da2aa6dc5ad9994b638ed09eb81c44cc05540b 25-Jan-2013 Greg Clayton <gclayton@apple.com> <rdar://problem/13069948>

Major fixed to allow reading files that are over 4GB. The main problems were that the DataExtractor was using 32 bit offsets as a data cursor, and since we mmap all of our object files we could run into cases where if we had a very large core file that was over 4GB, we were running into the 4GB boundary.

So I defined a new "lldb::offset_t" which should be used for all file offsets.

After making this change, I enabled warnings for data loss and for enexpected implicit conversions temporarily and found a ton of things that I fixed.

Any functions that take an index internally, should use "size_t" for any indexes and also should return "size_t" for any sizes of collections.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@173463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
fc04d2463ad654c28f9ee2ee836174cc86b7f8b8 30-Aug-2012 Greg Clayton <gclayton@apple.com> OptionValueFileSpec had an accessor to read the contents of the file and return the data. This can end up being used to get the string contents of a text file and could end up not being NULL terminated. I added accessors to get the file contents raw, or with a null terminator. Added the needed calls to make this happen in the FileSpec and File classes.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@162921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
2f28ece553d2ef0d7b3e8d1419020591ec3818f9 04-Jan-2012 Greg Clayton <gclayton@apple.com> <rdar://problem/10507811>

Be better at detecting when DWARF changes and handle this more
gracefully than asserting and exiting.

Also fixed up a bunch of system calls that weren't properly checking
for EINTR.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@147559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
7e5fa7fc1f8efd24c078e063b2c4b5e13ba5be20 20-Sep-2011 Jason Molenda <jmolenda@apple.com> Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag
incorrect uses. Fix all incorrect uses. Most of these are innocuous,
a few were resulting in crashes.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
419144b064166f0d18b06cad4d52fe66e7ca058f 09-Feb-2011 Greg Clayton <gclayton@apple.com> File::GetFileSpec() support for linux patch from Stephen Wilson.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125181 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
c08c4d3fa57387517b9ef43230f4b92c19e70572 09-Feb-2011 Greg Clayton <gclayton@apple.com> Pull support for the shared and exclusive lock since this wasn't available
on linux. And conditionalize the availablility of the fcntl() command
F_GETPATH.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
5892856b0cd6591194c669afab5bf9ac19c5b3a0 09-Feb-2011 Greg Clayton <gclayton@apple.com> Use Host::File in lldb_private::StreamFile and other places to cleanup host
layer a bit more.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
d35305ab31c10130fd60cec3f6ff62c49f1fb9dd 08-Feb-2011 Greg Clayton <gclayton@apple.com> Updated a few more Host::File functions and added documentation.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125110 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
882ef0508d9fc517b8ce51a6115b0a3a4e195725 08-Feb-2011 Greg Clayton <gclayton@apple.com> Added a few more calls to the File abtract class for seeking, syncing and
getting the file spec from the file descriptor.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h
60a63aea48af3c5fb34a808e97cb5227eebbaf00 08-Feb-2011 Greg Clayton <gclayton@apple.com> Added a file abtraction layer into the Host section of LLDB.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/include/lldb/Host/File.h