1 //===-- SWIG Interface for SBSymbol -----------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 "Represents the symbol possibly associated with a stack frame.
13 SBModule contains SBSymbol(s). SBSymbol can also be retrieved from SBFrame.
15 See also SBModule and SBFrame."
25 SBSymbol (const lldb::SBSymbol &rhs);
30 explicit operator bool() const;
37 GetDisplayName() const;
40 GetMangledName () const;
42 lldb::SBInstructionList
43 GetInstructions (lldb::SBTarget target);
45 lldb::SBInstructionList
46 GetInstructions (lldb::SBTarget target, const char *flavor_string);
55 GetPrologueByteSize ();
61 GetDescription (lldb::SBStream &description);
70 operator == (const lldb::SBSymbol &rhs) const;
73 operator != (const lldb::SBSymbol &rhs) const;
75 STRING_EXTENSION(SBSymbol)
79 def get_instructions_from_current_target (self):
80 return self.GetInstructions (target)
82 name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''')
83 mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''')
84 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.''')
85 addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''')
86 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.''')
87 prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
88 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.''')
89 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.''')
90 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.''')