diff --git a/lldb/bindings/interface/SBProcessExtensions.i b/lldb/bindings/interface/SBProcessExtensions.i --- a/lldb/bindings/interface/SBProcessExtensions.i +++ b/lldb/bindings/interface/SBProcessExtensions.i @@ -2,6 +2,11 @@ %extend lldb::SBProcess { #ifdef SWIGPYTHON %pythoncode %{ + def WriteCStringToMemory(self, addr, str, error): + if not str[-1] == '\0': + str += '\0' + return self.WriteMemory(addr, str, error) + def __get_is_alive__(self): '''Returns "True" if the process is currently alive, "False" otherwise''' s = self.GetState()