llvm/lldb
Michał Górny 2c6d90d741 [lldb] [Commands] Remove 'append' from 'platform file open' mode
Remove File::eOpenOptionAppend from the mode used by 'platform file
open' command.  According to POSIX, O_APPEND causes all successive
writes to be done at the end of the file.  This effectively makes
the offset argument to 'platform file write' meaningless.

Furthermore, apparently O_APPEND is not implemented reliably everywhere.
The Linux manpage for pwrite(2) suggests that Linux does respect
O_APPEND there while according to POSIX it should not, so the actual
behavior would be dependent on how the vFile:pwrite packet is
implemented on the server.

Ideally, the mode used for opening flags would be provided via options.
However, changing the default mode seems to be a reasonable intermediate
solution.

Differential Revision: https://reviews.llvm.org/D107664
2021-09-08 15:28:03 +02:00
..
bindings [lldb/Plugins] Introduce Scripted Interface Factory 2021-09-03 19:37:25 +02:00
cmake Revert "[lldb/lua] Force Lua version to be 5.3" 2021-09-03 17:31:25 +08:00
docs [LLDB][Docs] Indicate PS1 variable by $ 2021-09-04 20:57:59 +05:30
examples [lldb] Update crashlog.py to accept multiple results from mdfind 2021-09-07 08:36:58 -07:00
include/lldb [lldb] Support SaveCore() from gdb-remote client 2021-09-06 18:33:02 +02:00
packages/Python [lldb] [llgs server] Support creating core dumps on NetBSD 2021-09-06 12:16:14 +02:00
resources
scripts
source [lldb] [Commands] Remove 'append' from 'platform file open' mode 2021-09-08 15:28:03 +02:00
test [lldb] [Commands] Remove 'append' from 'platform file open' mode 2021-09-08 15:28:03 +02:00
third_party/Python/module [LLDB] Change pexpect timeout to 30 to 60 2021-08-02 06:34:11 +05:00
tools Revert "[lldb server] Tidy up LLDB server return codes and associated tests" 2021-09-02 15:27:39 +02:00
unittests [lldb/Plugins] Introduce Scripted Interface Factory 2021-09-03 19:37:25 +02:00
utils
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set 2021-08-13 14:18:03 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py