Class: GDB::EvalContext

Inherits:
Object
  • Object
show all
Defined in:
lib/gdb/eval_context.rb

Overview

For evaluation ruby code in gdb.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gdb) ⇒ EvalContext

Instantiate a GDB::EvalContext object.

Each GDB should have exactly one GDB::EvalContext for evaluating Ruby.

Parameters:


18
19
20
# File 'lib/gdb/eval_context.rb', line 18

def initialize(gdb)
  @gdb = gdb
end

Instance Attribute Details

#gdbGDB::GDB (readonly)

Returns The gdb instance.

Returns:


9
10
11
# File 'lib/gdb/eval_context.rb', line 9

def gdb
  @gdb
end