llvm-project/lldb
Greg Clayton 3bcdfc0ec1 <rdar://problem/12798131>
Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite.

This fix does the following:
- make sure all short options are treated as "int"
- make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired
- fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates
- fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value

llvm-svn: 169189
2012-12-04 00:32:51 +00:00
..
docs Avoid potentially disastrous mistakes when removing a file. 2012-11-05 18:41:33 +00:00
examples Replace printf with result.Printf, so that the plugin shows its output with any configuration of the LLDB I/O streams (esp. useful in graphic environments such as Xcode) 2012-10-30 18:01:15 +00:00
include <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
lib Use libxml2 on Mac OS X. 2012-10-31 23:02:00 +00:00
lldb.xcodeproj Bump lldb version num to lldb-178, debugserver version to debugserver-198. 2012-12-01 04:50:09 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bump to lldb-168, debugserver-193. 2012-09-20 06:42:30 +00:00
scripts Match extern "C" in declaration and definition (swig template) 2012-11-29 16:38:44 +00:00
source <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
test <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
tools <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
utils Minor cleanup. 2012-03-05 18:25:29 +00:00
www Added malloc introspection commands for Mac OS X for both GDB and LLDB. 2012-11-19 17:47:29 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Use libxml2 on Mac OS X. 2012-10-31 23:02:00 +00:00