llvm-project/lldb
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
..
bindings [lldb][bindings] Fix module_access handling of regex 2022-09-03 10:33:26 -07:00
cmake Revert "[CMake] Avoid `LLVM_BINARY_DIR` when other more specific variable are better-suited" 2022-08-25 11:13:46 -04:00
docs [lldb][docs] Fix formatting in fuzzing doc 2022-08-26 22:15:38 -05:00
examples [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
include/lldb Fix inconsistent target arch when attaching to arm64 binaries on 2022-09-01 16:39:35 -07:00
packages/Python/lldbsuite Fix inconsistent target arch when attaching to arm64 binaries on 2022-09-01 16:39:35 -07:00
resources
scripts
source [NFC] Remove duplicate code in SBTypeCategory 2022-09-02 16:04:04 -07:00
test [lldb][bindings] Fix module_access handling of regex 2022-09-03 10:33:26 -07:00
third_party/Python/module [lldb] Remove uses of six module (NFC) 2022-08-11 19:06:15 -07:00
tools Modify all register values whose byte size matches the address size to be formatter as eFormatAddressInfo. 2022-08-22 14:48:16 -07:00
unittests [test] Remove problematic thread from MainLoopTest to fix flakiness 2022-09-02 10:30:56 -07:00
utils Fix a bug in lldb-dotest that was uncovered by setting no value for dotest_args_str. 2022-08-31 18:00:18 -07:00
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt lldb: Disable unittests if llvm_gtest target does not exist 2022-08-10 16:56:08 -07:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py