hanchenye-llvm-project/lldb/source/Host/common
Zachary Turner df734cdd39 Fix tests broken by the OptionValidator changes.
The getopt library has a structure called option (lowercase).  We
have a structure called Option (uppercase).  previously the two
structures had exactly the same definitions, and we were doing a
C-style cast of an Option* to an option*.  C-style casts don't
bother to warn you when you cast to unrelated types, but in the
original OptionValidator patch I modified the definition of Option.

This patch fixes the errors by building an array of option
structures and filling it out the correct way before passing it to
the getopt library.

This also fixes one other source of test failures: an uninitialized
read that occurs due to not initializing a field of the
OptionDefinition.

Reviewed By: Todd Fiala

Differential Revision: http://reviews.llvm.org/D4425

llvm-svn: 212628
2014-07-09 16:32:07 +00:00
..
CMakeLists.txt Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
Condition.cpp cleanup unreferenced functions 2014-03-20 06:08:36 +00:00
DynamicLibrary.cpp
Editline.cpp "process kill" and "process detach" were causing double prompts or prompts that would overwrite each other. Fixed now. 2014-05-08 23:04:39 +00:00
File.cpp Replace some _MSC_VER with _WIN32. 2014-03-12 10:45:23 +00:00
FileSpec.cpp Fix typos. 2014-07-01 21:22:11 +00:00
Host.cpp __arm64__ and __aarch64__ #ifdef adjustments 2014-07-09 01:29:05 +00:00
Makefile
Mutex.cpp
NativeBreakpoint.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeBreakpoint.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeBreakpointList.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeBreakpointList.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeProcessProtocol.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeProcessProtocol.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeThreadProtocol.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
NativeThreadProtocol.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
OptionParser.cpp Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
Pipe.cpp Fix compilation errors introduced by host Pipe abstraction 2014-07-03 05:20:28 +00:00
ProcessRunLock.cpp
SocketAddress.cpp Fix Windows warnings. 2014-05-28 16:43:26 +00:00
SoftwareBreakpoint.cpp Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
SoftwareBreakpoint.h Add lldb-gdbserver support for Linux x86_64. 2014-06-30 21:05:18 +00:00
Symbols.cpp
Terminal.cpp lldb: remove adhoc implementation of array_sizeof 2014-06-27 05:17:41 +00:00
TimeValue.cpp