Johnny Chen | 6d91e0a | 2011-07-19 01:07:06 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBSymbol -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | %feature("docstring", |
| 13 | "Represents the symbol possibly associated with a stack frame. |
| 14 | SBModule contains SBSymbol(s). SBSymbol can also be retrived from SBFrame. |
| 15 | |
| 16 | See also SBModule and SBFrame." |
| 17 | ) SBSymbol; |
| 18 | class SBSymbol |
| 19 | { |
| 20 | public: |
| 21 | |
| 22 | SBSymbol (); |
| 23 | |
| 24 | ~SBSymbol (); |
| 25 | |
| 26 | SBSymbol (const lldb::SBSymbol &rhs); |
| 27 | |
| 28 | bool |
| 29 | IsValid () const; |
| 30 | |
| 31 | |
| 32 | const char * |
| 33 | GetName() const; |
| 34 | |
| 35 | const char * |
| 36 | GetMangledName () const; |
| 37 | |
| 38 | lldb::SBInstructionList |
| 39 | GetInstructions (lldb::SBTarget target); |
| 40 | |
| 41 | SBAddress |
| 42 | GetStartAddress (); |
| 43 | |
| 44 | SBAddress |
| 45 | GetEndAddress (); |
| 46 | |
| 47 | uint32_t |
| 48 | GetPrologueByteSize (); |
| 49 | |
| 50 | SymbolType |
| 51 | GetType (); |
| 52 | |
| 53 | bool |
| 54 | GetDescription (lldb::SBStream &description); |
Greg Clayton | 3be42fb | 2012-04-02 20:08:08 +0000 | [diff] [blame] | 55 | |
| 56 | bool |
| 57 | IsExternal(); |
| 58 | |
| 59 | bool |
| 60 | IsSynthetic(); |
| 61 | |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 62 | %pythoncode %{ |
| 63 | def get_instructions_from_current_target (self): |
| 64 | return self.GetInstructions (target) |
| 65 | |
| 66 | __swig_getmethods__["name"] = GetName |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 67 | if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 68 | |
| 69 | __swig_getmethods__["mangled"] = GetMangledName |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 70 | if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 71 | |
| 72 | __swig_getmethods__["type"] = GetType |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 73 | if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 74 | |
| 75 | __swig_getmethods__["addr"] = GetStartAddress |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 76 | if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 77 | |
| 78 | __swig_getmethods__["end_addr"] = GetEndAddress |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 79 | if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 80 | |
| 81 | __swig_getmethods__["prologue_size"] = GetPrologueByteSize |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 82 | if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 83 | |
| 84 | __swig_getmethods__["instructions"] = get_instructions_from_current_target |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 85 | if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.''') |
Greg Clayton | 3be42fb | 2012-04-02 20:08:08 +0000 | [diff] [blame] | 86 | |
| 87 | __swig_getmethods__["external"] = IsExternal |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 88 | if _newclass: external = property(IsExternal, None, doc='''A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.''') |
Greg Clayton | 3be42fb | 2012-04-02 20:08:08 +0000 | [diff] [blame] | 89 | |
| 90 | __swig_getmethods__["synthetic"] = IsSynthetic |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 91 | if _newclass: synthetic = property(IsSynthetic, None, doc='''A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.''') |
Greg Clayton | 3be42fb | 2012-04-02 20:08:08 +0000 | [diff] [blame] | 92 | |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 93 | |
| 94 | %} |
| 95 | |
Johnny Chen | 6d91e0a | 2011-07-19 01:07:06 +0000 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | } // namespace lldb |