This is an archive of the discontinued LLVM Phabricator instance.

Adds the ability for Command options to be validated at runtime.
ClosedPublic

Authored by zturner on Jul 3 2014, 12:32 AM.

Details

Summary

This patch adds the notion of an OptionValidator to the OptionDefinition. The purpose of the OptionValidator is to determine, based on some arbitrary set of conditions, whether or not a command option is valid for a given debugger state. An example of this might be to selectively disable or enable certain command options that don't apply to a particular platform.

This patch contains no functional change, and does not actually make use of an OptionValidator for any purpose yet. It involves alot of code churn, however, so is submitted independently so as not to muddy up the subsequent change which actually begins making use of the validator.

Diff Detail

Event Timeline

zturner updated this revision to Diff 11043.Jul 3 2014, 12:32 AM
zturner retitled this revision from to Adds the ability for Command options to be validated at runtime..
zturner updated this object.
zturner edited the test plan for this revision. (Show Details)
zturner added a subscriber: Unknown Object (MLST).
zturner closed this revision.Jul 3 2014, 1:42 PM
zturner updated this revision to Diff 11065.

Closed by commit rL212290 (authored by @zturner).