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