llvm-project/lldb/test
Dave Lee 75f05fccbb [lldb][bindings] Fix module_access handling of regex
Fixes broken support for: `target.module[re.compile("libFoo")]`

There were two issues:
1. The type check was expecting `re.SRE_Pattern`
2. The expression to search the module path had a typo

In the first case, `re.SRE_Pattern` does not exist in Python 3, and is replaced
with `re.Pattern`.

While editing this code, I changed the type checks to us `isinstance`, which is
the conventional way of type checking.

From the docs on `type()`:

> The `isinstance()` built-in function is recommended for testing the type of an object, because it takes subclasses into account.

Differential Revision: https://reviews.llvm.org/D133130
2022-09-03 10:33:26 -07:00
..
API [lldb][bindings] Fix module_access handling of regex 2022-09-03 10:33:26 -07:00
Shell [LLDB] Make build.py use uname to set platform 2022-09-01 14:00:47 +05:00
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
CMakeLists.txt [lldb] Correctly add runtime test dependencies 2022-08-31 16:37:35 -07:00
lit.cfg.py
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00