mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rbi
.gdbinit (rbi): show the content of LINK_ELEMENT*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b8986f445
commit
f12746d165
1 changed files with 15 additions and 0 deletions
15
.gdbinit
15
.gdbinit
|
@ -949,3 +949,18 @@ define SDR
|
|||
call rb_vmdebug_stack_dump_raw_current()
|
||||
end
|
||||
|
||||
define rbi
|
||||
if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_LABEL
|
||||
p *(LABEL*)$arg0
|
||||
else
|
||||
if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_INSN
|
||||
p *(INSN*)$arg0
|
||||
else
|
||||
if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_ADJUST
|
||||
p *(ADJUST*)$arg0
|
||||
else
|
||||
print *$arg0
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue