summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
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