blob: 4995c4f9c4944cbfcfc1edcf93b4d48e9c1d0e3b [file] [log] [blame]
Johnny Chen6d91e0a2011-07-19 01:07:06 +00001//===-- 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
10namespace lldb {
11
12%feature("docstring",
13"Represents the symbol possibly associated with a stack frame.
14SBModule contains SBSymbol(s). SBSymbol can also be retrived from SBFrame.
15
16See also SBModule and SBFrame."
17) SBSymbol;
18class SBSymbol
19{
20public:
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 Clayton3be42fb2012-04-02 20:08:08 +000055
56 bool
57 IsExternal();
58
59 bool
60 IsSynthetic();
61
Greg Claytonb302dff2012-02-01 08:09:32 +000062 %pythoncode %{
63 def get_instructions_from_current_target (self):
64 return self.GetInstructions (target)
65
66 __swig_getmethods__["name"] = GetName
67 if _newclass: x = property(GetName, None)
68
69 __swig_getmethods__["mangled"] = GetMangledName
70 if _newclass: x = property(GetMangledName, None)
71
72 __swig_getmethods__["type"] = GetType
73 if _newclass: x = property(GetType, None)
74
75 __swig_getmethods__["addr"] = GetStartAddress
76 if _newclass: x = property(GetStartAddress, None)
77
78 __swig_getmethods__["end_addr"] = GetEndAddress
79 if _newclass: x = property(GetEndAddress, None)
80
81 __swig_getmethods__["prologue_size"] = GetPrologueByteSize
82 if _newclass: x = property(GetPrologueByteSize, None)
83
84 __swig_getmethods__["instructions"] = get_instructions_from_current_target
85 if _newclass: x = property(get_instructions_from_current_target, None)
Greg Clayton3be42fb2012-04-02 20:08:08 +000086
87 __swig_getmethods__["external"] = IsExternal
88 if _newclass: x = property(IsExternal, None)
89
90 __swig_getmethods__["synthetic"] = IsSynthetic
91 if _newclass: x = property(IsSynthetic, None)
92
Greg Claytonb302dff2012-02-01 08:09:32 +000093
94 %}
95
Johnny Chen6d91e0a2011-07-19 01:07:06 +000096};
97
98} // namespace lldb