aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings/python
diff options
context:
space:
mode:
authorMiro Bucko <mbucko@meta.com>2024-06-24 18:51:12 -0400
committerGitHub <noreply@github.com>2024-06-24 18:51:12 -0400
commit0d4da0df166ea7512c6e97e182b21cd706293eaa (patch)
treee2b3f27e576d23a4778c14d7e465b8d46005571e /lldb/bindings/python
parent32e4906c28952d2dd8ed193cfd37856b98233ef5 (diff)
downloadllvm-0d4da0df166ea7512c6e97e182b21cd706293eaa.tar.gz
llvm-0d4da0df166ea7512c6e97e182b21cd706293eaa.tar.bz2
llvm-0d4da0df166ea7512c6e97e182b21cd706293eaa.zip
[lldb][API] Add Find(Ranges)InMemory() to Process SB API (#96569)
This is a second attempt to land #95007 Test Plan: llvm-lit llvm-project/lldb/test/API/python_api/find_in_memory/TestFindInMemory.py llvm-project/lldb/test/API/python_api/find_in_memory/TestFindRangesInMemory.py Reviewers: clayborg Tasks: lldb
Diffstat (limited to 'lldb/bindings/python')
-rw-r--r--lldb/bindings/python/python-typemaps.swig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig
index c39594c7df04..f8c33e15c03e 100644
--- a/lldb/bindings/python/python-typemaps.swig
+++ b/lldb/bindings/python/python-typemaps.swig
@@ -257,7 +257,8 @@ AND call SWIG_fail at the same time, because it will result in a double free.
}
// For SBProcess::WriteMemory, SBTarget::GetInstructions and SBDebugger::DispatchInput.
%typemap(in) (const void *buf, size_t size),
- (const void *data, size_t data_len) {
+ (const void *data, size_t data_len),
+ (const void *buf, uint64_t size) {
if (PythonString::Check($input)) {
PythonString str(PyRefType::Borrowed, $input);
$1 = (void *)str.GetString().data();