1662548c8SAlex Langford STRING_EXTENSION_OUTSIDE(SBLineEntry) 2662548c8SAlex Langford 3662548c8SAlex Langford %extend lldb::SBLineEntry { 4662548c8SAlex Langford #ifdef SWIGPYTHON 5662548c8SAlex Langford %pythoncode %{ 6*6813ef37SMed Ismail Bennani # operator== is a free function, which swig does not handle, so we inject 7*6813ef37SMed Ismail Bennani # our own equality operator here 8*6813ef37SMed Ismail Bennani def __eq__(self, other): 9*6813ef37SMed Ismail Bennani return not self.__ne__(other) 10*6813ef37SMed Ismail Bennani 11*6813ef37SMed Ismail Bennani def __int__(self): 12*6813ef37SMed Ismail Bennani return self.GetLine() 13*6813ef37SMed Ismail Bennani 14*6813ef37SMed Ismail Bennani def __hex__(self): 15*6813ef37SMed Ismail Bennani return self.GetStartAddress() 16662548c8SAlex Langford file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''') 17662548c8SAlex Langford line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''') 18662548c8SAlex Langford column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''') 19662548c8SAlex Langford addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry.''') 20662548c8SAlex Langford end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry.''') 21662548c8SAlex Langford %} 22662548c8SAlex Langford #endif 23662548c8SAlex Langford } 24