summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-10 03:36:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-10 03:36:08 +0000
commitf12746d165023fd0277a6817f870e1b12b4dc948 (patch)
tree37b4036eb8b17646a6ce7b7b19362b4df7c26311 /.gdbinit
parent7b8986f44567df30eb98f3c0928dfa175472b783 (diff)
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
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 46bc9bc5dd..03c2b653cb 100644
--- a/.gdbinit
+++ b/.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