llvm-capstone/lldb
Pavel Labath 34cac0955d Options: Correctly check for missing arguments
Relying on the value of optind for detecting missing arguments is
unreliable because its value after a failed parse is an implementation
detail. A more correct way to achieve this is to pass ':' at the
beginning of option string, which tells getopt to return ':' for missing
arguments.

For this to work, I also had to add a nullptr at the end of the argv
vector, as some getopt implementations did not work without that. This
is also an implementation detail, as getopt should normally be called
with argc+argc "as to main function" (i.e. null-terminated).

Thanks to Michał Górny for testing this patch out on NetBSD.

llvm-svn: 364317
2019-06-25 14:02:39 +00:00
..
cmake Specify log level for CMake messages (less stderr) 2019-06-19 15:25:32 +00:00
docs [Docs] Modernize references to macOS 2019-05-30 16:46:22 +00:00
examples Python 3: decode string as utf-8 to avoid type mismatch. 2019-06-14 15:39:14 +00:00
include/lldb [Target] Hoist LanguageRuntime::GetDeclVendor 2019-06-24 20:33:09 +00:00
lit DWARF: Add support for type units+split dwarf combo 2019-06-25 06:59:48 +00:00
lldb.xcodeproj Don't link against the DebugSymbols private framework; try to dlopen 2019-06-24 22:08:43 +00:00
lldb.xcworkspace
packages/Python/lldbsuite [ABI] Implement Windows ABI for x86_64 2019-06-24 18:21:05 +00:00
resources
scripts Make SBDebugger.RunCommandInterpreter callable from Python. 2019-05-15 00:08:55 +00:00
source Options: Correctly check for missing arguments 2019-06-25 14:02:39 +00:00
test [CMake] Folder structure for generated Xcode project to cover more targets 2019-05-28 09:29:05 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [lldb] [test] Extend D55859 symbols.enable-external-lookup=false for more testcases 2019-06-17 14:46:17 +00:00
unittests [unittests] Simplify CMakeLists with object library 2019-06-21 11:46:46 +00:00
utils [CMake] Fix lldb-dotest for single-config generators in standalone builds 2019-06-13 17:35:43 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] LLDB.framework tools handling 2019-05-29 11:26:06 +00:00
CODE_OWNERS.txt
INSTALL.txt Fix build URL in new LLDB website 2019-05-01 09:55:00 +00:00
LICENSE.TXT
use_lldb_suite_root.py