llvm-project/lldb/source/Plugins/Process/gdb-remote
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
..
CMakeLists.txt Adding CMake build system to LLDB. Some known issues remain: 2013-02-21 20:58:22 +00:00
GDBRemoteCommunication.cpp Fixed the "log enable gdb-remote packets" to support dumping the binary memory read packet ('x') by printing out the binary data correctly using only printable characters and removing the 0x7d escapes so the memory is readable in the packet output. 2014-06-20 20:41:07 +00:00
GDBRemoteCommunication.h Remove an assertion that was being hit due to slow DNS name lookups on MacOSX for "localhost". 2014-02-27 19:38:18 +00:00
GDBRemoteCommunicationClient.cpp Fix typos. 2014-07-01 21:22:11 +00:00
GDBRemoteCommunicationClient.h Fix typos. 2014-07-01 21:22:11 +00:00
GDBRemoteCommunicationServer.cpp Fix typos. 2014-07-01 21:22:11 +00:00
GDBRemoteCommunicationServer.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
GDBRemoteRegisterContext.cpp Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
GDBRemoteRegisterContext.h Replace uint32_t by lldb::RegisterKing in register context API. 2014-07-02 09:51:28 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
ProcessGDBRemote.cpp Fix typos. 2014-07-01 21:22:11 +00:00
ProcessGDBRemote.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
ProcessGDBRemoteLog.cpp <rdar://problem/13854277> 2013-05-10 21:47:16 +00:00
ProcessGDBRemoteLog.h <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
ThreadGDBRemote.cpp Initial merge of some of the iOS 8 / Mac OS X Yosemite specific 2014-06-13 02:37:02 +00:00
ThreadGDBRemote.h Initial merge of some of the iOS 8 / Mac OS X Yosemite specific 2014-06-13 02:37:02 +00:00