The Ruby-GDB Arms Race Now At a Standoff #
Generous Mauricio gives:
(gdb) session-ruby (gdb) redirect_stdout [Switching to Thread -1210431808 (LWP 4584)] $1 = 2 (gdb) rb_object_counts $2 = 3078718700
To which, crafty Jamis strikes out:
>> require 'gdb'
=> true
>> gdb = GDB::Ruby.new([pid])
=> #<GDB::Ruby:0xb7d72550 @gdb=#<IO:0xb7d72438>, @names={}, @interns={}>
>> gdb.object_space
=> {"File"=>24, "OptionParser"=>1, "Gem::Version::Requirement"=>38, ... }
Continue to full post. (261 words)


