mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

tricks to get types to resolve. I did this by correctly including the correct files: stdint.h and all lldb-*.h files first before including the API files. This allowed me to remove all of the hacks that were in the lldb.swig file and it also allows all of the #defines in lldb-defines.h and enumerations in lldb-enumerations.h to appear in the lldb.py module. This will make the python script code a lot more readable. Cleaned up the "process launch" command to not execute a "process continue" command, it now just does what it should have with the internal API calls instead of executing another command line command. Made the lldb_private::Process set the state to launching and attaching if WillLaunch/WillAttach return no error respectively. llvm-svn: 115902
150 lines
5.2 KiB
Plaintext
150 lines
5.2 KiB
Plaintext
|
|
%extend lldb::SBAddress {
|
|
PyObject *lldb::SBAddress::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBBlock {
|
|
PyObject *lldb::SBBlock::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBBreakpoint {
|
|
PyObject *lldb::SBBreakpoint::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBBreakpointLocation {
|
|
PyObject *lldb::SBBreakpointLocation::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription ("full", description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBCommandReturnObject {
|
|
PyObject *lldb::SBCommandReturnObject::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBCompileUnit {
|
|
PyObject *lldb::SBCompileUnit::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBDebugger {
|
|
PyObject *lldb::SBDebugger::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBError {
|
|
PyObject *lldb::SBError::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBFileSpec {
|
|
PyObject *lldb::SBFileSpec::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBFrame {
|
|
PyObject *lldb::SBFrame::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBFunction {
|
|
PyObject *lldb::SBFunction::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBInstruction {
|
|
PyObject *lldb::SBInstruction::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBInstructionList {
|
|
PyObject *lldb::SBInstructionList::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBLineEntry {
|
|
PyObject *lldb::SBLineEntry::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBModule {
|
|
PyObject *lldb::SBModule::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBProcess {
|
|
PyObject *lldb::SBProcess::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBSymbol {
|
|
PyObject *lldb::SBSymbol::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBSymbolContext {
|
|
PyObject *lldb::SBSymbolContext::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBTarget {
|
|
PyObject *lldb::SBTarget::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBThread {
|
|
PyObject *lldb::SBThread::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
%extend lldb::SBValue {
|
|
PyObject *lldb::SBValue::__repr__ (){
|
|
lldb::SBStream description;
|
|
$self->GetDescription (description);
|
|
return PyString_FromString (description.GetData());
|
|
}
|
|
}
|
|
|