summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 07:23:14 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 07:23:14 (GMT)
commit65075dfe3adbb834d9282c01ba9b0630e2752450 (patch)
treef30e4437d2d45670efb6c16a3ab2b7550a46b048 /.gdbinit
parent3e69b074c5ad87778fac4d7974fe1e5fc11d5ed3 (diff)
symbol.c: ids array
* symbol.c (global_symbols): make ids two-dimensional array of strings and symbols, for write-barrier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index 6dfdab6..59b43bf 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -378,8 +378,8 @@ define rp_id
end
end
printf "(%ld): ", $id
- if global_symbols.ids.size > ($id >> RUBY_ID_SCOPE_SHIFT)
- set $str = global_symbols.ids.ptr[$id >> RUBY_ID_SCOPE_SHIFT]->str
+ set $str = lookup_id_str($id)
+ if $str
rp_string $str
else
echo undef\n