Class: LLDB::SymbolContext
- Inherits:
-
Object
- Object
- LLDB::SymbolContext
show all
- Includes:
- NativeLifecycle
- Defined in:
- lib/lldb/symbol_context.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#close, #closed?, #context, #context!, #ensure_open!, #initialize_native_object
Constructor Details
#initialize(ptr, parent:, context: parent.context) ⇒ SymbolContext
Returns a new instance of SymbolContext.
15
16
17
18
19
20
21
22
|
# File 'lib/lldb/symbol_context.rb', line 15
def initialize(ptr, parent:, context: parent.context)
@parent = parent
initialize_native_object(
ptr,
release: ->(released) { FFIBindings.lldb_symbol_context_destroy(released) },
context: context
)
end
|
Instance Attribute Details
#parent ⇒ Object
10
11
12
|
# File 'lib/lldb/symbol_context.rb', line 10
def parent
@parent
end
|
Instance Method Details
#module ⇒ Object
36
37
38
39
40
41
42
43
|
# File 'lib/lldb/symbol_context.rb', line 36
def module
return nil unless valid?
mod_ptr = FFIBindings.lldb_symbol_context_get_module(@ptr)
return nil if mod_ptr.nil? || mod_ptr.null?
Module.new(mod_ptr, target: nil, context: context)
end
|
#to_ptr ⇒ Object
53
54
55
|
# File 'lib/lldb/symbol_context.rb', line 53
def to_ptr
@ptr
end
|