Class: LLDB::ExpressionOptions

Inherits:
Object
  • Object
show all
Includes:
NativeLifecycle
Defined in:
lib/lldb/expression_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from NativeLifecycle

#close, #closed?, #context, #context!, #ensure_open!, #initialize_native_object

Constructor Details

#initialize(context: nil) ⇒ ExpressionOptions

Returns a new instance of ExpressionOptions.

RBS:

  • context: Context?

  • return: void



17
18
19
20
21
22
23
24
25
# File 'lib/lldb/expression_options.rb', line 17

def initialize(context: nil)
  ptr = FFIBindings.lldb_expression_options_create
  initialize_native_object(
    ptr,
    release: ->(released) { FFIBindings.lldb_expression_options_destroy(released) },
    context: context
  )
  @language = nil
end

Instance Attribute Details

#languageObject

RBS:

  • return: Integer?



99
100
101
# File 'lib/lldb/expression_options.rb', line 99

def language
  @language
end

Instance Method Details

#fetch_dynamic_valueObject

RBS:

  • return: Integer



66
67
68
# File 'lib/lldb/expression_options.rb', line 66

def fetch_dynamic_value
  FFIBindings.lldb_expression_options_get_fetch_dynamic_value(@ptr)
end

#fetch_dynamic_value=(value) ⇒ Object

RBS:

  • value: Integer

  • return: void



72
73
74
# File 'lib/lldb/expression_options.rb', line 72

def fetch_dynamic_value=(value)
  FFIBindings.lldb_expression_options_set_fetch_dynamic_value(@ptr, value)
end

#ignore_breakpoints=(value) ⇒ Object

RBS:

  • value: bool

  • return: void



61
62
63
# File 'lib/lldb/expression_options.rb', line 61

def ignore_breakpoints=(value)
  FFIBindings.lldb_expression_options_set_ignore_breakpoints(@ptr, value ? 1 : 0)
end

#ignore_breakpoints?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


55
56
57
# File 'lib/lldb/expression_options.rb', line 55

def ignore_breakpoints?
  FFIBindings.lldb_expression_options_get_ignore_breakpoints(@ptr) != 0
end

#stop_others=(value) ⇒ Object

RBS:

  • value: bool

  • return: void



94
95
96
# File 'lib/lldb/expression_options.rb', line 94

def stop_others=(value)
  FFIBindings.lldb_expression_options_set_stop_others(@ptr, value ? 1 : 0)
end

#stop_others?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


88
89
90
# File 'lib/lldb/expression_options.rb', line 88

def stop_others?
  FFIBindings.lldb_expression_options_get_stop_others(@ptr) != 0
end

#suppress_persistent_result=(value) ⇒ Object

RBS:

  • value: bool

  • return: void



115
116
117
# File 'lib/lldb/expression_options.rb', line 115

def suppress_persistent_result=(value)
  FFIBindings.lldb_expression_options_set_suppress_persistent_result(@ptr, value ? 1 : 0)
end

#suppress_persistent_result?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


109
110
111
# File 'lib/lldb/expression_options.rb', line 109

def suppress_persistent_result?
  FFIBindings.lldb_expression_options_get_suppress_persistent_result(@ptr) != 0
end

#timeoutObject

RBS:

  • return: Integer



33
34
35
# File 'lib/lldb/expression_options.rb', line 33

def timeout
  FFIBindings.lldb_expression_options_get_timeout(@ptr)
end

#timeout=(value) ⇒ Object

RBS:

  • value: Integer

  • return: void



39
40
41
# File 'lib/lldb/expression_options.rb', line 39

def timeout=(value)
  FFIBindings.lldb_expression_options_set_timeout(@ptr, value)
end

#to_ptrObject

RBS:

  • return: FFI::Pointer



120
121
122
# File 'lib/lldb/expression_options.rb', line 120

def to_ptr
  @ptr
end

#try_all_threads=(value) ⇒ Object

RBS:

  • value: bool

  • return: void



83
84
85
# File 'lib/lldb/expression_options.rb', line 83

def try_all_threads=(value)
  FFIBindings.lldb_expression_options_set_try_all_threads(@ptr, value ? 1 : 0)
end

#try_all_threads?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


77
78
79
# File 'lib/lldb/expression_options.rb', line 77

def try_all_threads?
  FFIBindings.lldb_expression_options_get_try_all_threads(@ptr) != 0
end

#unwind_on_error=(value) ⇒ Object

RBS:

  • value: bool

  • return: void



50
51
52
# File 'lib/lldb/expression_options.rb', line 50

def unwind_on_error=(value)
  FFIBindings.lldb_expression_options_set_unwind_on_error(@ptr, value ? 1 : 0)
end

#unwind_on_error?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


44
45
46
# File 'lib/lldb/expression_options.rb', line 44

def unwind_on_error?
  FFIBindings.lldb_expression_options_get_unwind_on_error(@ptr) != 0
end

#valid?Boolean

RBS:

  • return: bool

Returns:

  • (Boolean)


28
29
30
# File 'lib/lldb/expression_options.rb', line 28

def valid?
  !@ptr.null?
end