[lldb] Limit `nothreadallow` to Python in SWIG bindings
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 12 Jan 2023 18:15:51 +0000 (10:15 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 12 Jan 2023 18:19:30 +0000 (10:19 -0800)
commitba35c27ec9aa9807f5b4be2a0c33ca9b045accc7
treedc847cd585189fc34163aa8b593a6b24093d9e99
parent19992b1d96b3d0c70c1cbc512beffd1b88c7a3e4
[lldb] Limit `nothreadallow` to Python in SWIG bindings

SWIG allows you to partially disable thread support for a given function
in Python with `nothreadallow`. This functionality is limited to Python,
but until SWIG 4.1, it would silently ignore this for other languages,
such as Lua. New versions of SWIG are more strict and therefore we need
to guard this with `SWIGPYTHON`.

For more details on the functionality, I recommend reading the commit
message from 070a1d562b30.
lldb/bindings/interface/SBValueList.i