ruby lldb
make lldb
minrubyを使うのでEncodingとかなかったりする
make lldb-ruby
make install しないとずれる
code:console
~/ghq/github.com/ruby/build 22s
❯ make lldb ../install/bin/ruby ../ruby/test.rb
lldb -o 'command script import -r ../ruby/misc/lldb_cruby.py' miniruby -- ../ruby/test.rb
(lldb) target create "miniruby"
Current executable set to '/Users/mi/ghq/github.com/ruby/build/miniruby' (arm64).
(lldb) settings set -- target.run-args "../ruby/test.rb"
(lldb) command script import -r ../ruby/misc/lldb_cruby.py
lldb scripts for ruby has been installed.
(lldb) br set --name node_extended_grapheme_cluster
Breakpoint 1: where = miniruby`parse_exp + 384 inlined node_extended_grapheme_cluster at regparse.c:5977:20, address = 0x00000001001c745c (lldb) run
Process 97942 launched: '/Users/mi/ghq/github.com/ruby/build/miniruby' (arm64)
Process 97942 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001001c745c miniruby`parse_exp inlined node_extended_grapheme_cluster(np=0x000000016fdfd090, env=0x000000016fdfd240) at regparse.c:5977:20 5974 Node **alts = node_common+0; /* size: 5 */
5975
5976 for (i=0; i<NODE_COMMON_SIZE; i++)
-> 5977 node_commoni = NULL_NODE; 5978
5979 /* CRLF, common for both Unicode and non-Unicode */
5980 /* \x0D\x0A */
Target 0: (miniruby) stopped.
(lldb)