summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-09-16 17:02:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2020-09-22 13:40:57 -0700
commit3d474e19fdd51b2731c2a77386877cceb8d4e241 (patch)
tree5d5f4f8fc0bf24b2aa8236b35de44b0878719fbc /string.c
parent179384a66862d5ef7413b6f4850b97d0becf4ec9 (diff)
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 😆
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3554
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions