summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 01:46:07 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 01:46:07 +0000
commit580424d53395ba7ef8f37e200d85f6e66abe7671 (patch)
treee0f208dfd9e89aa956bc1c742b23ab84f3b1aacb /.gdbinit
parent1e395da1f5c489ca65e175e3c11cb3ccb33900ff (diff)
.gdbinit (print_lineno): follow up changes in r61534, r61536
insns_info was refactored. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit11
1 files changed, 6 insertions, 5 deletions
diff --git a/.gdbinit b/.gdbinit
index a188ffa172..ee29c2b6be 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1022,19 +1022,20 @@ define print_lineno
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