summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 07:23:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 07:23:08 +0000
commit3e69b074c5ad87778fac4d7974fe1e5fc11d5ed3 (patch)
tree383e5d90d8841b425a753ed220d060444aaffa6f /.gdbinit
parent5617e317713b55d544fb493d9346d2330c60c727 (diff)
symbol.c: immortal IDs
* symbol.c (global_symbols): make IDs immortal always, instead of treating dynamic symbols as IDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gdbinit b/.gdbinit
index 1c719a622a..6dfdab6068 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -378,9 +378,9 @@ define rp_id
end
end
printf "(%ld): ", $id
- rb_numtable_entry global_symbols.id_str $id
- if $rb_numtable_rec
- rp_string $rb_numtable_rec
+ if global_symbols.ids.size > ($id >> RUBY_ID_SCOPE_SHIFT)
+ set $str = global_symbols.ids.ptr[$id >> RUBY_ID_SCOPE_SHIFT]->str
+ rp_string $str
else
echo undef\n
end