llvm-project/lldb/source/Interpreter
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
..
Args.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
CMakeLists.txt Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
CommandHistory.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
CommandInterpreter.cpp __arm64__ and __aarch64__ #ifdef adjustments 2014-07-09 01:29:05 +00:00
CommandObject.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
CommandObjectRegexCommand.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
CommandObjectScript.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
CommandObjectScript.h Fix a few more clang (3.2) warnings on Linux: 2012-12-07 22:21:08 +00:00
CommandOptionValidators.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
CommandReturnObject.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
Makefile Don't build LLDBWrapPython.cpp for mingw. 2014-03-21 12:53:28 +00:00
OptionGroupArchitecture.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupBoolean.cpp Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
OptionGroupFile.cpp Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
OptionGroupFormat.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupOutputFile.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupPlatform.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupString.cpp Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
OptionGroupUInt64.cpp Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
OptionGroupUUID.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupValueObjectDisplay.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupVariable.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionGroupWatchpoint.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
OptionValue.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueArch.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueArgs.cpp Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
OptionValueArray.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueBoolean.cpp lldb: remove adhoc implementation of array_sizeof 2014-06-27 05:17:41 +00:00
OptionValueDictionary.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueEnumeration.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueFileSpec.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValueFileSpecLIst.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
OptionValueFormat.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
OptionValuePathMappings.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
OptionValueProperties.cpp Fix a few typos. 2014-06-27 02:42:12 +00:00
OptionValueRegex.cpp Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
OptionValueSInt64.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueString.cpp Now that "settings set" will strip leading and trailing spaces, we need a way to be able to specify string values that contain spaces. So now settings setting <property> <value>" can have a <value> that is quoted: 2013-03-06 02:19:38 +00:00
OptionValueUInt64.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueUUID.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
Options.cpp Revert "Fix broken tests due to new error output." 2014-07-09 16:31:49 +00:00
Property.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
PythonDataObjects.cpp Switch NULL to C++11 nullptr in source/Interpreter 2014-04-20 00:31:37 +00:00
ScriptInterpreter.cpp Windows build fixes and removal of endlessly recursive termination function. 2014-07-04 06:58:01 +00:00
ScriptInterpreterNone.cpp Merging the iohandler branch back into main. 2014-01-27 23:43:24 +00:00
ScriptInterpreterPython.cpp Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
embedded_interpreter.py Suppress python readline module under Linux to fix a seg fault. 2014-02-26 07:39:20 +00:00