1 //===-- SBBlock.h -----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBBlock_h_
11 #define LLDB_SBBlock_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFrame.h"
15 #include "lldb/API/SBTarget.h"
16 #include "lldb/API/SBValueList.h"
26 SBBlock (const lldb::SBBlock &rhs);
31 operator = (const lldb::SBBlock &rhs);
40 GetInlinedName () const;
43 GetInlinedCallSiteFile () const;
46 GetInlinedCallSiteLine () const;
49 GetInlinedCallSiteColumn () const;
64 GetRangeStartAddress (uint32_t idx);
67 GetRangeEndAddress (uint32_t idx);
70 GetRangeIndexForBlockAddress (lldb::SBAddress block_addr);
73 GetVariables (lldb::SBFrame& frame,
77 lldb::DynamicValueType use_dynamic);
80 GetVariables (lldb::SBTarget& target,
84 //------------------------------------------------------------------
85 /// Get the inlined block that contains this block.
88 /// If this block is inlined, it will return this block, else
89 /// parent blocks will be searched to see if any contain this
90 /// block and are themselves inlined. An invalid SBBlock will
91 /// be returned if this block nor any parent blocks are inlined
93 //------------------------------------------------------------------
95 GetContainingInlinedBlock ();
98 GetDescription (lldb::SBStream &description);
101 friend class SBAddress;
102 friend class SBFrame;
103 friend class SBFunction;
104 friend class SBSymbolContext;
106 lldb_private::Block *
110 SetPtr (lldb_private::Block *lldb_object_ptr);
112 SBBlock (lldb_private::Block *lldb_object_ptr);
115 AppendVariables (bool can_create, bool get_parent_variables, lldb_private::VariableList *var_list);
117 lldb_private::Block *m_opaque_ptr;
123 #endif // LLDB_SBBlock_h_