ruby-changes:49585
From: ktsj <ko1@a...>
Date: Tue, 9 Jan 2018 10:46:14 +0900 (JST)
Subject: [ruby-changes:49585] ktsj:r61700 (trunk): .gdbinit (print_lineno): follow up changes in r61534, r61536
ktsj 2018-01-09 10:46:07 +0900 (Tue, 09 Jan 2018) New Revision: 61700 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61700 Log: .gdbinit (print_lineno): follow up changes in r61534, r61536 insns_info was refactored. Modified files: trunk/.gdbinit Index: .gdbinit =================================================================== --- .gdbinit (revision 61699) +++ .gdbinit (revision 61700) @@ -1022,19 +1022,20 @@ define print_lineno https://github.com/ruby/ruby/blob/trunk/.gdbinit#L1022 end set $i = 0 - set $size = $iseq->body->insns_info_size - set $table = $iseq->body->insns_info + set $size = $iseq->body->insns_info.size + set $table = $iseq->body->insns_info.body + set $positions = $iseq->body->insns_info.positions #printf "size: %d\n", $size if $size == 0 else set $i = 1 while $i < $size - #printf "table[%d]: position: %d, line: %d, pos: %d\n", $i, $table[$i].position, $table[$i].line_no, $pos - if $table[$i].position > $pos + #printf "table[%d]: position: %d, line: %d, pos: %d\n", $i, $positions[$i], $table[$i].line_no, $pos + if $positions[$i] > $pos loop_break end set $i = $i + 1 - if $table[$i].position == $pos + if $positions[$i] == $pos loop_break end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/