llvm-project/lldb/source/Expression
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
..
ASTDumper.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ASTResultSynthesizer.cpp Fix r209807 which inadvertently removed things 2014-05-29 13:42:17 +00:00
ASTStructExtractor.cpp Brought LLDB top-of-tree into sync with LLVM/Clang 2012-09-24 22:25:51 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
ClangASTSource.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
ClangExpressionDeclMap.cpp Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
ClangExpressionParser.cpp Don't truncate the target triple when initializing clang. 2014-06-27 23:19:42 +00:00
ClangExpressionVariable.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ClangFunction.cpp Rename eExecution*** to eExpression*** to be consistent with the result type. 2014-05-05 02:47:44 +00:00
ClangPersistentVariables.cpp I have brought LLDB up-to-date with top of tree 2012-02-04 08:49:35 +00:00
ClangUserExpression.cpp Rename eExecution*** to eExpression*** to be consistent with the result type. 2014-05-05 02:47:44 +00:00
ClangUtilityFunction.cpp JITed functions can now have debug info and be debugged with debug and source info: 2014-03-24 23:10:19 +00:00
DWARFExpression.cpp Replace uint32_t by lldb::RegisterKing in register context API. 2014-07-02 09:51:28 +00:00
ExpressionSourceCode.cpp lldb arm64 import. 2014-03-29 18:54:20 +00:00
IRDynamicChecks.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
IRExecutionUnit.cpp Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support. 2014-06-24 22:22:43 +00:00
IRForTarget.cpp Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
IRInterpreter.cpp sanitise sign comparisons 2014-04-02 03:51:35 +00:00
IRMemoryMap.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Materializer.cpp Fixed a flipped conditional when writing back the 2014-04-24 21:43:04 +00:00