| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add fuzz calls for newly added SBProcess methods. Fix a typo in the audodoc ↵ | Johnny Chen | 2011-12-15 | 1 | -1/+1 |
| | | | | | | | of SBProcess.ReadCStringFromMemory(). llvm-svn: 146695 | ||||
| * | Expose new read memory fucntion through python in SBProcess: | Greg Clayton | 2011-12-15 | 1 | -0/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | size_t SBProcess::ReadCStringFromMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error); uint64_t SBProcess::ReadUnsignedFromMemory (addr_t addr, uint32_t byte_size, lldb::SBError &error); lldb::addr_t SBProcess::ReadPointerFromMemory (addr_t addr, lldb::SBError &error); These ReadCStringFromMemory() has some SWIG type magic that makes it return the python string directly and the "buf" is not needed: error = SBError() max_cstr_len = 256 cstr = lldb.process.ReadCStringFromMemory (0x1000, max_cstr_len, error) if error.Success(): .... The other two functions behave as expteced. This will make it easier to get integer values from the inferior process that are correctly byte swapped. Also for pointers, the correct pointer byte size will be used. Also cleaned up a few printf style warnings for the 32 bit lldb build on darwin. llvm-svn: 146636 | ||||
| * | SBProcess.PutSTDIN() needs to be properly typemapped when swigging, | Johnny Chen | 2011-11-28 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | so that we can do Python scripting like this: target = self.dbg.CreateTarget(self.exe) self.dbg.SetAsync(True) process = target.LaunchSimple(None, None, os.getcwd()) process.PutSTDIN("Line 1 Entered.\n") process.PutSTDIN("Line 2 Entered.\n") process.PutSTDIN("Line 3 Entered.\n") Add TestProcessIO.py to exercise the process IO API: PutSTDIN()/GetSTDOUT()/GetSTDERR(). llvm-svn: 145282 | ||||
| * | Clarify the SBProcess Python API GetSTDOUT()/GetSTDERR(). They look ↵ | Johnny Chen | 2011-11-28 | 1 | -0/+10 |
| | | | | | | | | | different from the C++ API due to swig typemapping. llvm-svn: 145260 | ||||
| * | Add SWIG Python interface files for SBProcess, SBThread, and SBFrame. | Johnny Chen | 2011-07-18 | 1 | -0/+220 |
| llvm-svn: 135419 | |||||

