Python commands as first class citizens.

This should be a necessary precursor to adding support 
for any future extension languages.

llvm-svn: 296834
This commit is contained in:
Jim Ingham 2017-03-02 22:24:01 +00:00
parent 0f9f9da3b7
commit a35a7cd016
1 changed files with 19 additions and 1 deletions

View File

@ -198,7 +198,7 @@
SomeVectorLikeType that it gets from the synthetic children.
</p>
</li>
<li>
Recover thread information lazily
<p>
@ -224,6 +224,24 @@
use of some particular instruction, or instruction pattern, etc."
</p>
</li>
<li>
Make Python-backed commands first class citizens
<p>
As it stands, Python commands have no way to advertise their options. They are
required to parse their arguments by hand. That leads to inconsistency, and more
importantly means they can't take advantage of auto-generated help and command
completion. This leaves python-backed commands feeling worse than built-in ones.
</p>
<p>
As part of this job, it would also be great to hook automatically hook the "type" of an option value
or argument (e.g. eArgTypeShlibName) to sensible default completers. You need to be able to
over-ride this in more complicated scenarios (like in "break set" where the presence of
a "-s" option limits the search for completion of a "-n" option.) But in common cases it is
unnecessary busy-work to have to supply the completer AND the type. If this worked, then
it would be easier for Python commands to also get correct completers.
</p>
</li>
<li>
Documentation and better examples