hanchenye-llvm-project/lldb/source/Commands
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
..
CommandCompletions.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
CommandObjectApropos.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
CommandObjectApropos.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectArgs.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectArgs.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectBreakpoint.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectBreakpoint.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectBreakpointCommand.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectBreakpointCommand.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectCommands.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectCommands.h
CommandObjectCrossref.cpp Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectDisassemble.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectDisassemble.h <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
CommandObjectExpression.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectExpression.h Add the ability to set timeout & "run all threads" options both from the "expr" command and from 2012-10-16 21:41:58 +00:00
CommandObjectFrame.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectFrame.h
CommandObjectHelp.cpp <rdar://problem/12491387> 2012-10-13 02:07:45 +00:00
CommandObjectHelp.h <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectLog.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectLog.h
CommandObjectMemory.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectMemory.h
CommandObjectMultiword.cpp <rdar://problem/12491387> 2012-10-13 02:07:45 +00:00
CommandObjectPlatform.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectPlatform.h
CommandObjectPlugin.cpp Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
CommandObjectPlugin.h Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
CommandObjectProcess.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectProcess.h
CommandObjectQuit.cpp Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectQuit.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectRegister.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectRegister.h
CommandObjectSettings.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectSettings.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectSource.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectSource.h
CommandObjectSyntax.cpp <rdar://problem/12491387> 2012-10-13 02:07:45 +00:00
CommandObjectSyntax.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectTarget.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectTarget.h
CommandObjectThread.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectThread.h
CommandObjectType.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectType.h
CommandObjectVersion.cpp Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectVersion.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectWatchpoint.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectWatchpoint.h Chnage VerifyWatchpointIDs() from a static function to a class function to be called from other source files. 2012-06-19 22:12:58 +00:00
CommandObjectWatchpointCommand.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
CommandObjectWatchpointCommand.h rdar://problem/11457143 [ER] need "watchpoint command ..." 2012-08-09 23:09:42 +00:00
Makefile