llvm-project/lldb/source/API
Greg Clayton e91b7957b2 Expose new read memory fucntion through python in SBProcess:
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
2011-12-15 03:14:23 +00:00
..
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
SBAddress.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBBlock.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBBreakpoint.cpp Process IDs (lldb::pid_t) and thread IDs (lldb::tid_t) are now 64 bit. This 2011-12-01 23:28:38 +00:00
SBBreakpointLocation.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBBroadcaster.cpp Added a less than operator that will compare the internal opaque pointer values so SBBroadcaster objects can be contained in ordered containers or sorted. 2010-12-05 23:14:19 +00:00
SBCommandInterpreter.cpp Sanity check the inputs to SBCommandInterpreter::HandleCompletion 2011-12-05 19:24:15 +00:00
SBCommandReturnObject.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBCommunication.cpp Test lldb Python API object's default constructor and make sure it is invalid 2011-06-20 22:30:48 +00:00
SBCompileUnit.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBData.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBDebugger.cpp Fixed an issue with the pthread_setspecific() where we weren't NULL-ing out 2011-11-17 01:23:07 +00:00
SBError.cpp Make ValueObject::SetValueFromCString work correctly. 2011-08-12 23:34:31 +00:00
SBEvent.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBFileSpec.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBFileSpecList.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBFrame.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBFunction.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
SBHostOS.cpp Add error message; clean up comment. 2011-06-14 16:36:12 +00:00
SBInputReader.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00
SBInstruction.cpp Fixed the public and internal disassembler API to be named correctly: 2011-09-27 00:58:45 +00:00
SBInstructionList.cpp Test lldb Python API object's default constructor and make sure it is invalid 2011-06-20 22:30:48 +00:00
SBLineEntry.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBListener.cpp Added a SBListener parameter to Launch and attach calls to avoid a race 2011-02-03 21:28:34 +00:00
SBModule.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBProcess.cpp Expose new read memory fucntion through python in SBProcess: 2011-12-15 03:14:23 +00:00
SBSection.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBSourceManager.cpp Fix regression of test SourceManagerTestCase.test_display_source_python. 2011-10-03 20:56:39 +00:00
SBStream.cpp Use Host::File in lldb_private::StreamFile and other places to cleanup host 2011-02-09 01:08:52 +00:00
SBStringList.cpp Added copy constructors and assignment operators to all lldb::SB* classes 2010-11-05 23:17:00 +00:00
SBSymbol.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBSymbolContext.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBSymbolContextList.cpp Added the ability to find functions from either a SBModule (find functions 2011-06-21 01:34:41 +00:00
SBTarget.cpp I have added a function to SBTarget that allows 2011-12-14 23:49:37 +00:00
SBThread.cpp Process IDs (lldb::pid_t) and thread IDs (lldb::tid_t) are now 64 bit. This 2011-12-01 23:28:38 +00:00
SBType.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00
SBValue.cpp http://llvm.org/bugs/show_bug.cgi?id=11579 2011-12-15 01:55:36 +00:00
SBValueList.cpp Added support for finding and global variables in the SBTarget and SBModule 2011-06-29 22:09:02 +00:00
SBWatchpoint.cpp <rdar://problem/10126482> 2011-11-13 06:57:31 +00:00