Skip to content

Commit 40e9056

Browse files
committed
[lldb][swig] Support SBFileSpec::GetPath
1 parent 8a598f1 commit 40e9056

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lldb/bindings/python/python-typemaps.swig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ AND call SWIG_fail at the same time, because it will result in a double free.
233233
}
234234

235235

236+
// For lldb::SBFileSpec::GetPath
237+
%typemap(in) (char *dst_path, size_t dst_len) = (char *dst_or_null, size_t dst_len);
238+
%typemap(argout) (char *dst_path, size_t dst_len) = (char *dst_or_null, size_t dst_len);
239+
240+
236241
// typemap for an outgoing buffer
237242
// See also SBEvent::SBEvent(uint32_t event, const char *cstr, uint32_t cstr_len).
238243
// Ditto for SBProcess::PutSTDIN(const char *src, size_t src_len).

lldb/test/API/python_api/default-constructor/sb_filespec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def fuzz_obj(obj):
1010
obj.ResolveExecutableLocation()
1111
obj.GetFilename()
1212
obj.GetDirectory()
13-
obj.GetPath(None, 0)
13+
obj.GetPath(0)
1414
obj.GetDescription(lldb.SBStream())

0 commit comments

Comments
 (0)