llvm-project/lldb/source/Core
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
..
Address.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
AddressRange.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
AddressResolver.cpp
AddressResolverFileLine.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
AddressResolverName.cpp Fix typos. 2014-07-01 21:22:11 +00:00
ArchSpec.cpp Add Kalimba support to ArchSpec. 2014-07-01 23:33:32 +00:00
Baton.cpp Don't print out the baton pointer value for simple Baton classes. 2011-06-21 20:47:20 +00:00
Broadcaster.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
CMakeLists.txt Initial merge of some of the iOS 8 / Mac OS X Yosemite specific 2014-06-13 02:37:02 +00:00
Communication.cpp Fixed CTRL+C related issues: 2014-05-02 00:45:31 +00:00
Connection.cpp
ConnectionFileDescriptor.cpp Fix a few typos. 2014-06-27 02:42:12 +00:00
ConnectionMachPort.cpp sanitise sign comparisons 2014-04-02 03:51:35 +00:00
ConnectionSharedMemory.cpp Fix most of the remaining Windows build warnings. 2014-06-02 17:30:22 +00:00
ConstString.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
DataBufferHeap.cpp <rdar://problem/14521548> 2013-07-24 18:17:35 +00:00
DataBufferMemoryMap.cpp Fix most of the remaining Windows build warnings. 2014-06-02 17:30:22 +00:00
DataEncoder.cpp Fixed the ValidOffsetForDataOfSize() to use simpler logic. Fixed DataExtractor::BytesLeft() to return the correct value. 2013-03-21 00:29:45 +00:00
DataExtractor.cpp Fix a few typos. 2014-06-27 02:42:12 +00:00
Debugger.cpp Fix a few typos. 2014-06-27 02:42:12 +00:00
Disassembler.cpp Merging the iohandler branch back into main. 2014-01-27 23:43:24 +00:00
DynamicLoader.cpp Modified ObjectFile::SetLoadAddress() to now be: 2014-02-07 22:54:47 +00:00
EmulateInstruction.cpp Replace uint32_t by lldb::RegisterKing in register context API. 2014-07-02 09:51:28 +00:00
Error.cpp Make the Expression Execution result enum available to the SB API layer. 2014-05-05 02:26:40 +00:00
Event.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
FileLineResolver.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
FileSpecList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
History.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
IOHandler.cpp Multi-line expressions in Xcode now have a space between the line number and the expression text. 2014-06-11 23:10:41 +00:00
Language.cpp lldb: remove adhoc implementation of array_sizeof 2014-06-27 05:17:41 +00:00
Listener.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
Log.cpp Correct comment for thread name log option 2014-05-21 13:46:46 +00:00
Makefile Remove lldb's custom copy of the C++ demangler, used only on Mac 2013-07-03 04:52:51 +00:00
Mangled.cpp Revert r205769 as it breaks the build on FreeBSD: 2014-04-08 17:02:25 +00:00
Module.cpp Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
ModuleChild.cpp <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
ModuleList.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
Opcode.cpp sanitise sign comparisons 2014-04-02 03:51:35 +00:00
PluginManager.cpp Fix a few typos. 2014-06-27 02:42:12 +00:00
RegisterValue.cpp RegisterValues can now report their contents as 2013-04-30 21:41:44 +00:00
RegularExpression.cpp Fix typos. 2014-07-01 21:22:11 +00:00
Scalar.cpp Fix typos. 2014-07-01 21:22:11 +00:00
SearchFilter.cpp Fix Windows build using portable types for formatting the log outputs 2014-03-03 15:39:47 +00:00
Section.cpp Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support. 2014-06-24 22:22:43 +00:00
SourceManager.cpp Merging the iohandler branch back into main. 2014-01-27 23:43:24 +00:00
State.cpp More Linux warnings fixes (remove default labels as needed): 2012-12-07 20:51:09 +00:00
Stream.cpp Fix typos. 2014-07-01 21:22:11 +00:00
StreamAsynchronousIO.cpp Merging the iohandler branch back into main. 2014-01-27 23:43:24 +00:00
StreamCallback.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StreamFile.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
StreamGDBRemote.cpp merge lldb-platform-work branch (and assorted fixes) into trunk 2013-08-26 23:57:52 +00:00
StreamString.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StringList.cpp Merging the iohandler branch back into main. 2014-01-27 23:43:24 +00:00
StructuredData.cpp Core: address comparison of signed and unsigned types 2014-06-13 03:30:42 +00:00
Timer.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
UUID.cpp Added a way to extract the module specifications from a file. A module specification is information that is required to describe a module (executable, shared library, object file, ect). This information includes host path, platform path (remote path), symbol file path, UUID, object name (for objects in .a files for example you could have an object name of "foo.o"), and target triple. Module specification can be used to create a module, or used to add a module to a target. A list of module specifications can be used to enumerate objects in container objects (like universal mach files and BSD archive files). 2013-07-08 22:22:41 +00:00
UserID.cpp Implemented a types.py module that allows types to be inspected for padding. 2013-06-19 21:50:28 +00:00
UserSettingsController.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
VMRange.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
Value.cpp Fix the copy constructor and assignement operator for the lldb_private::Value class to "do the right thing". 2014-05-16 21:49:19 +00:00
ValueObject.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectCast.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectChild.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectConstResult.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectConstResultChild.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResultImpl.cpp Fix typos. 2014-07-01 21:22:11 +00:00
ValueObjectDynamicValue.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
ValueObjectMemory.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectRegister.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectSyntheticFilter.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
ValueObjectVariable.cpp Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00