mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
3d474e19fd
I need to disassemble instruction sequences while debugging, so I wrote
this.
Usage is like this:
```
(lldb) p iseq
(rb_iseq_t *) $147 = 0x0000000101068400
(lldb) rbdisasm iseq
0000 putspecialobject( 3 )
0002 putnil
0003 defineclass( ID: 0x560b, (rb_iseq_t *)0x1010681d0, 2 )
0007 pop
0008 putspecialobject( 3 )
0010 putnil
0011 defineclass( ID: 0x56eb, (rb_iseq_t *)0x101063b58, 2 )
0015 leave
```
Also thanks a ton to @kivikakk helping me figure out how to navigate LLDB's Python 😆
|
||
---|---|---|
.. | ||
expand_tabs.rb | ||
lldb_cruby.py | ||
lldb_disasm.py | ||
rb_optparse.bash | ||
rb_optparse.zsh | ||
README | ||
ruby-style.el | ||
test_lldb_cruby.rb |
README this file rb_optparse.bash bash completion script rb_optparse.zsh zsh completion script ruby-style.el Ruby's C/C++ mode style for emacs lldb_cruby.py LLDB port of debug utility test_lldb_cruby.rb test file for LLDB port