Caroline Tice | e49ec18 | 2010-09-22 23:01:29 +0000 | [diff] [blame] | 1 | |
| 2 | %extend lldb::SBAddress { |
| 3 | PyObject *lldb::SBAddress::__repr__ (){ |
| 4 | lldb::SBStream description; |
| 5 | $self->GetDescription (description); |
| 6 | return PyString_FromString (description.GetData()); |
| 7 | } |
| 8 | } |
| 9 | %extend lldb::SBBlock { |
| 10 | PyObject *lldb::SBBlock::__repr__ (){ |
| 11 | lldb::SBStream description; |
| 12 | $self->GetDescription (description); |
| 13 | return PyString_FromString (description.GetData()); |
| 14 | } |
| 15 | } |
| 16 | %extend lldb::SBBreakpoint { |
| 17 | PyObject *lldb::SBBreakpoint::__repr__ (){ |
| 18 | lldb::SBStream description; |
| 19 | $self->GetDescription ("full", description); |
| 20 | return PyString_FromString (description.GetData()); |
| 21 | } |
| 22 | } |
| 23 | %extend lldb::SBBreakpointLocation { |
| 24 | PyObject *lldb::SBBreakpointLocation::__repr__ (){ |
| 25 | lldb::SBStream description; |
| 26 | $self->GetDescription ("full", description); |
| 27 | return PyString_FromString (description.GetData()); |
| 28 | } |
| 29 | } |
| 30 | %extend lldb::SBCommandReturnObject { |
| 31 | PyObject *lldb::SBCommandReturnObject::__repr__ (){ |
| 32 | lldb::SBStream description; |
| 33 | $self->GetDescription (description); |
| 34 | return PyString_FromString (description.GetData()); |
| 35 | } |
| 36 | } |
| 37 | %extend lldb::SBCompileUnit { |
| 38 | PyObject *lldb::SBCompileUnit::__repr__ (){ |
| 39 | lldb::SBStream description; |
| 40 | $self->GetDescription (description); |
| 41 | return PyString_FromString (description.GetData()); |
| 42 | } |
| 43 | } |
| 44 | %extend lldb::SBDebugger { |
| 45 | PyObject *lldb::SBDebugger::__repr__ (){ |
| 46 | lldb::SBStream description; |
| 47 | $self->GetDescription (description); |
| 48 | return PyString_FromString (description.GetData()); |
| 49 | } |
| 50 | } |
| 51 | %extend lldb::SBError { |
| 52 | PyObject *lldb::SBError::__repr__ (){ |
| 53 | lldb::SBStream description; |
| 54 | $self->GetDescription (description); |
| 55 | return PyString_FromString (description.GetData()); |
| 56 | } |
| 57 | } |
| 58 | %extend lldb::SBFileSpec { |
| 59 | PyObject *lldb::SBFileSpec::__repr__ (){ |
| 60 | lldb::SBStream description; |
| 61 | $self->GetDescription (description); |
| 62 | return PyString_FromString (description.GetData()); |
| 63 | } |
| 64 | } |
| 65 | %extend lldb::SBFrame { |
| 66 | PyObject *lldb::SBFrame::__repr__ (){ |
| 67 | lldb::SBStream description; |
| 68 | $self->GetDescription (description); |
| 69 | return PyString_FromString (description.GetData()); |
| 70 | } |
| 71 | } |
| 72 | %extend lldb::SBFunction { |
| 73 | PyObject *lldb::SBFunction::__repr__ (){ |
| 74 | lldb::SBStream description; |
| 75 | $self->GetDescription (description); |
| 76 | return PyString_FromString (description.GetData()); |
| 77 | } |
| 78 | } |
Greg Clayton | 5c4c746 | 2010-10-06 03:09:58 +0000 | [diff] [blame^] | 79 | %extend lldb::SBInstruction { |
| 80 | PyObject *lldb::SBInstruction::__repr__ (){ |
| 81 | lldb::SBStream description; |
| 82 | $self->GetDescription (description); |
| 83 | return PyString_FromString (description.GetData()); |
| 84 | } |
| 85 | } |
| 86 | %extend lldb::SBInstructionList { |
| 87 | PyObject *lldb::SBInstructionList::__repr__ (){ |
| 88 | lldb::SBStream description; |
| 89 | $self->GetDescription (description); |
| 90 | return PyString_FromString (description.GetData()); |
| 91 | } |
| 92 | } |
Caroline Tice | e49ec18 | 2010-09-22 23:01:29 +0000 | [diff] [blame] | 93 | %extend lldb::SBLineEntry { |
| 94 | PyObject *lldb::SBLineEntry::__repr__ (){ |
| 95 | lldb::SBStream description; |
| 96 | $self->GetDescription (description); |
| 97 | return PyString_FromString (description.GetData()); |
| 98 | } |
| 99 | } |
| 100 | %extend lldb::SBModule { |
| 101 | PyObject *lldb::SBModule::__repr__ (){ |
| 102 | lldb::SBStream description; |
| 103 | $self->GetDescription (description); |
| 104 | return PyString_FromString (description.GetData()); |
| 105 | } |
| 106 | } |
| 107 | %extend lldb::SBProcess { |
| 108 | PyObject *lldb::SBProcess::__repr__ (){ |
| 109 | lldb::SBStream description; |
| 110 | $self->GetDescription (description); |
| 111 | return PyString_FromString (description.GetData()); |
| 112 | } |
| 113 | } |
| 114 | %extend lldb::SBSymbol { |
| 115 | PyObject *lldb::SBSymbol::__repr__ (){ |
| 116 | lldb::SBStream description; |
| 117 | $self->GetDescription (description); |
| 118 | return PyString_FromString (description.GetData()); |
| 119 | } |
| 120 | } |
| 121 | %extend lldb::SBSymbolContext { |
| 122 | PyObject *lldb::SBSymbolContext::__repr__ (){ |
| 123 | lldb::SBStream description; |
| 124 | $self->GetDescription (description); |
| 125 | return PyString_FromString (description.GetData()); |
| 126 | } |
| 127 | } |
| 128 | %extend lldb::SBTarget { |
| 129 | PyObject *lldb::SBTarget::__repr__ (){ |
| 130 | lldb::SBStream description; |
| 131 | $self->GetDescription (description); |
| 132 | return PyString_FromString (description.GetData()); |
| 133 | } |
| 134 | } |
| 135 | %extend lldb::SBThread { |
| 136 | PyObject *lldb::SBThread::__repr__ (){ |
| 137 | lldb::SBStream description; |
| 138 | $self->GetDescription (description); |
| 139 | return PyString_FromString (description.GetData()); |
| 140 | } |
| 141 | } |
| 142 | %extend lldb::SBValue { |
| 143 | PyObject *lldb::SBValue::__repr__ (){ |
| 144 | lldb::SBStream description; |
| 145 | $self->GetDescription (description); |
| 146 | return PyString_FromString (description.GetData()); |
| 147 | } |
| 148 | } |
| 149 | |