summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-15 02:04:36 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-15 02:04:36 (GMT)
commitb1f3890b57a4a72a9f2b7b5eef445a45791a8ec5 (patch)
treef11f7d020db8870870a326539cf64a58cea6952c /.gdbinit
parent63bd8a74e81537ecf2aba0be0f8ef6eec9df2758 (diff)
* .gdbinit (rp, iseq): load dummy_gdb_enums on demand.
[ruby-dev:38606] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gdbinit b/.gdbinit
index b654563..b153412 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,4 +1,6 @@
define rp
+ if dummy_gdb_enums.special_consts
+ end
if (VALUE)($arg0) & RUBY_FIXNUM_FLAG
printf "FIXNUM: %ld\n", (long)($arg0) >> 1
else
@@ -627,6 +629,8 @@ define rb_backtrace
end
define iseq
+ if dummy_gdb_enums.special_consts
+ end
if ($arg0)->type == ISEQ_ELEMENT_NONE
echo [none]\n
end
@@ -648,6 +652,3 @@ define iseq
print *(ADJUST*)($arg0)
end
end
-
-if dummy_gdb_enums.special_consts
-end