[lldb/SWIG] Refactor extensions to be non Python-specific
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 Jan 2020 21:34:55 +0000 (13:34 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 Jan 2020 21:37:07 +0000 (13:37 -0800)
commit0341c11e08504acef8c16ab07210bc253dadf2d9
treea49c8fd69f16d9cc8aa6cd6558f8778fdb54fbe6
parent0b8ce37d64747ba7d8908626256e2b5e58f7b396
[lldb/SWIG] Refactor extensions to be non Python-specific

The current SWIG extensions for the string conversion operator is Python
specific because it uses the PythonObjects. This means that the code
cannot be reused for other SWIG supported languages such as Lua.

This reimplements the extensions in a more generic way that can be
reused.

Differential revision: https://reviews.llvm.org/D72377
lldb/scripts/Python/python-extensions.swig
lldb/scripts/interface/SBTarget.i
lldb/scripts/lldb.swig
lldb/scripts/lldb_lua.swig