llvm-project/lldb
Pavel Labath 0577a0cedb "Fix" TestFileHandle.py on non-darwin platforms
This test exposed a very long standing issue that the python file
objects returned by the FILE* typemap were unusable on non-darwin
platforms. The reason they work on darwin is that they rely on a
non-standard extension to fetch the "mode" of a FILE* object. On other
platforms, this code was #ifdefed out, and so we were returning an empty
mode.

As there's no portable way to get this information, I just change the
non-darwin path to return "r+", which should permit both reading and
writing operations on the object. If the underlying file descriptor
turns out to be incompatible with this mode, the operating system should
return EBADF (or equivalent), instead of the "file not open for XXX"
error from python.

llvm-svn: 373573
2019-10-03 08:44:33 +00:00
..
cmake [lldb][CMake] Build LLDB.framework with -Wdocumentation in Xcode 2019-09-18 10:41:13 +00:00
docs [Docs] Document lldb-instr 2019-10-01 00:12:47 +00:00
examples Revert [heap.py] Add missing declaration for malloc_get_all_zones 2019-08-22 21:01:45 +00:00
include/lldb factor out an abstract base class for File 2019-10-03 04:31:46 +00:00
lit Use llvm for dumping DWARF expressions 2019-09-30 13:44:17 +00:00
packages/Python/lldbsuite SBDebugger::SetInputFile, SetOutputFile, etc. 2019-10-03 04:04:48 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts "Fix" TestFileHandle.py on non-darwin platforms 2019-10-03 08:44:33 +00:00
source Fix a use-after-free in GDBRemoteCommunicationServerLLGS 2019-10-03 07:59:26 +00:00
test [CMake] Add the system debugserver to lldb-test-deps. 2019-09-25 17:13:02 +00:00
third_party/Python/module dotest.py: bugfix: test filters with -f do not work on Python3 2019-09-20 23:41:29 +00:00
tools [JSON] Use LLVM's library for argdumper 2019-10-01 17:41:55 +00:00
unittests factor out an abstract base class for File 2019-10-03 04:31:46 +00:00
utils [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py