llvm-project/lldb/source/Interpreter
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
..
Args.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandInterpreter.cpp <rdar://problem/11449953> Change Debugger::SetOutputFileHandle() so that it does not automatically initialize the script interpreter in order to transfer its output file handle to it 2012-10-29 21:18:03 +00:00
CommandObject.cpp A few more build fixes for gcc 4.6: 2012-12-04 00:23:45 +00:00
CommandObjectRegexCommand.cpp Make the error message from regex commands use the command's syntax string if it exists rather than a generic but 2012-10-06 00:27:04 +00:00
CommandObjectScript.cpp <rdar://problem/12586188> Make ImportError a special case for "command script import", such that the error message for the exception becomes the error for the entire import operation 2012-10-31 00:01:26 +00:00
CommandObjectScript.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandReturnObject.cpp Made it so changes to the prompt via "settings set prompt" get noticed by the command line. 2012-09-01 00:38:36 +00:00
Makefile Makefile patches from Charles Davis and Daniel Malea (+ one or two tweaks). 2012-11-01 18:55:16 +00:00
OptionGroupArchitecture.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupBoolean.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupFile.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupFormat.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupOutputFile.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupPlatform.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupString.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupUInt64.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupUUID.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupValueObjectDisplay.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupVariable.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupWatchpoint.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionValue.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
OptionValueArch.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
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 Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueBoolean.cpp <rdar://problem/12022079> 2012-08-23 00:22:02 +00:00
OptionValueDictionary.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
OptionValueEnumeration.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueFileSpec.cpp When OptionValueFileSpec is given a filename starting 2012-10-11 06:05:54 +00:00
OptionValueFileSpecLIst.cpp Ran the sources through the compiler with -Wshadow warnings 2012-10-04 22:47:07 +00:00
OptionValueFormat.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
OptionValuePathMappings.cpp Ran the sources through the compiler with -Wshadow warnings 2012-10-04 22:47:07 +00:00
OptionValueProperties.cpp Added the infrastructure necessary for plug-ins to be able to add their own settings instead of having settings added to existing ones. In particular "target.disable-kext-loading" was added to "target" where it should actually be specific to the the dynamic loader plugin. Now the plug-in manager has the ability to create settings at the root level starting with "plugin". Each plug-in type can add new sub dictionaries, and then each plug-in can register a setting dictionary under its own short name. For example the DynamicLoaderDarwinKernel plug-in now registers a setting dictionary at: 2012-10-19 18:02:49 +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 Made it so changes to the prompt via "settings set prompt" get noticed by the command line. 2012-09-01 00:38:36 +00:00
OptionValueUInt64.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueUUID.cpp Wrapped up the work I am going to do for now for the "add-dsym" or "target symfile add" command. 2012-09-27 22:26:11 +00:00
Options.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
Property.cpp Wrapped up the work I am going to do for now for the "add-dsym" or "target symfile add" command. 2012-09-27 22:26:11 +00:00
PythonDataObjects.cpp Fix include path for Linux and FreeBSD. 2012-08-27 16:54:58 +00:00
ScriptInterpreter.cpp rdar://problem/11457143 [ER] need "watchpoint command ..." 2012-08-09 23:09:42 +00:00
ScriptInterpreterNone.cpp <rdar://problem/12586188> Make ImportError a special case for "command script import", such that the error message for the exception becomes the error for the entire import operation 2012-10-31 00:01:26 +00:00
ScriptInterpreterPython.cpp Fixed a crash in which we examined the extension of 2012-12-03 21:28:37 +00:00
embedded_interpreter.py Split up the Python script interpreter code to allow multiple script interpreter objects to 2011-01-14 00:29:16 +00:00