1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/misc
Aaron Patterson 3d474e19fd Rudimentary support for disassembling rb_iseq_t
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 😆
2020-09-22 13:40:57 -07:00
..
expand_tabs.rb Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
lldb_cruby.py add lldb functions for getting the heap page / heap page body 2020-09-02 16:45:54 -07:00
lldb_disasm.py Rudimentary support for disassembling rb_iseq_t 2020-09-22 13:40:57 -07:00
rb_optparse.bash
rb_optparse.zsh Fixed misspellings 2019-12-20 09:32:42 +09:00
README
ruby-style.el
test_lldb_cruby.rb Fix typo in lldb script 2019-04-02 21:13:22 +00:00

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