teak-llvm/lldb/packages/Python/lldbsuite/test/python_api
Lawrence D'Anna b3faa01ff9 IOHandler: fall back on File::Read if a FILE* isn't available.
Summary:
IOHandler needs to read lines of input from a lldb::File.
The way it currently does this using, FILE*, which is something
we want to avoid now.   I'd prefer to just replace the FILE* code
with calls to File::Read, but it contains an awkward and
delicate workaround specific to ctrl-C handling on windows, and
it's not clear if or how that workaround would translate to
lldb::File.

So in this patch, we use use the FILE* if it's available, and only
fall back on File::Read if that's the only option.

I think this is a reasonable approach here for two reasons.  First
is that interactive terminal support is the one area where FILE*
can't be avoided.   We need them for libedit and curses anyway,
and using them here as well is consistent with that pattern.

The second reason is that the comments express a hope that the
underlying windows bug that's being worked around will be fixed one
day, so hopefully when that happens, that whole path can be deleted.

Reviewers: JDevlieghere, jasonmolenda, labath, lanza

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68622

llvm-svn: 374576
2019-10-11 17:43:32 +00:00
..
breakpoint [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
class_members [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
debugger [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
default-constructor new api class: SBFile 2019-10-03 04:01:07 +00:00
disassemble-raw-data [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
event [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
exprpath_synthetic [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
file_handle IOHandler: fall back on File::Read if a FILE* isn't available. 2019-10-11 17:43:32 +00:00
findvalue_duplist Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
formatters Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
frame Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
function_symbol [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
hello_world TestHelloWorld: Make compatible with remote testing 2019-10-09 21:41:02 +00:00
interpreter update TestRunCommandInterpreterAPI to use SBFile 2019-10-10 19:24:07 +00:00
lldbutil Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
module_section Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
name_lookup [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
objc_type Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
process Ah, only skip this for embedded darwin targets. 2019-09-11 01:03:24 +00:00
rdar-12481949 [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sbdata [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sblaunchinfo Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
sbstructureddata [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
sbtype_typeclass [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
sbvalue_const_addrof [ScriptInterpreter] Limit LLDB's globals to interactive mode. 2019-09-18 00:30:01 +00:00
sbvalue_persist [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
section [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
signals [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
symbol-context [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
target [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
thread [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
type [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
value [Python] Implement __next__ for value_iter 2019-09-04 18:59:13 +00:00
value_var_update Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
watchpoint [Windows] Add support of watchpoints to ProcessWindows 2019-09-06 05:37:03 +00:00
.categories