llvm-project/lldb
Zachary Turner a746e8e58a Start converting usages of off_t to other types.
off_t is a type which is used for file offsets.  Even more
specifically, it is only used by a limited number of C APIs that
deal with files.  Any usage of off_t where the variable is not
intended to be used with one of these APIs is a bug, by definition.

This patch corrects some easy mis-uses of off_t, generally by
converting them to lldb::offset_t, but sometimes by using other
types such as size_t, when appropriate.

The use of off_t to represent these offsets has worked fine in
practice on linux-y platforms, since we used _FILE_OFFSET_64 to
guarantee that off_t was a uint64.  On Windows, however,
_FILE_OFFSET_64 is unrecognized, and off_t will always be 32-bit.
So the usage of off_t on Windows actually leads to legitimate bugs.

Reviewed by: Greg Clayton

Differential Revision: http://reviews.llvm.org/D4358

llvm-svn: 212192
2014-07-02 17:24:07 +00:00
..
docs Fix typos. 2014-07-01 21:22:11 +00:00
examples Fix typos. 2014-07-01 21:22:11 +00:00
include Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
lib Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support. 2014-06-24 22:22:43 +00:00
lldb.xcodeproj Fixup Windows build breaks for the llgs upstream. 2014-06-30 23:51:35 +00:00
lldb.xcworkspace Move the performance test cases into their own project. 2013-03-18 23:05:00 +00:00
resources Update the lldb version number in the xcode project files from 310.99.0 to 320.99.0. 2014-01-10 06:12:10 +00:00
scripts Fix typos. 2014-07-01 21:22:11 +00:00
source Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
test Fix typos. 2014-07-01 21:22:11 +00:00
tools Fix typos. 2014-07-01 21:22:11 +00:00
utils LUI: Fix some issues causing crashes in the source view 2013-10-23 01:18:21 +00:00
www Fix typos. 2014-07-01 21:22:11 +00:00
.arcconfig Update .arcconfig to point to reviews.llvm.org 2014-05-20 21:24:59 +00:00
.gitignore Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
CMakeLists.txt This creates a valid Python API for Windows, pending some issues. The changes included are - 2014-07-01 17:57:19 +00:00
INSTALL.txt Update INSTALL.txt to mention LLDB builds on Linux with GCC or Clang. 2013-02-21 22:37:18 +00:00
LICENSE.TXT
Makefile Add some missing defines that are already present in the cmake side. 2014-03-12 10:35:00 +00:00