mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-26 02:25:36 +00:00
6d980a95a7
The standard library rlcompleter doesn't support expressions involving an item lookup (e.g., x[0] or x['foo']). This is a pain for the drgn CLI, because it's common to use prog['variable'] and want to autocomplete it. Instead of using the standard library rlcompleter, implement our own, cleaned up version of it with the ability to handle expressions containing [key]. rlcompleter already allows for arbitrary __getattr__() calls, and __getitem__() isn't any different. |
||
---|---|---|
.. | ||
__init__.py | ||
test_leb128.py | ||
test_memberdesignator.py | ||
test_program.py | ||
test_rlcompleter.py | ||
test_type.py | ||
test_typeindex.py | ||
test_typename.py |