aboutsummaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit13
1 files changed, 6 insertions, 7 deletions
diff --git a/.gdbinit b/.gdbinit
index 9d14fb2bb9..356b743709 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -398,12 +398,7 @@ define rp_id
end
end
printf "(%ld): ", $id
- set $str = lookup_id_str($id)
- if $str
- rp_string $str
- else
- echo undef\n
- end
+ print_id $id
end
end
end
@@ -1093,7 +1088,11 @@ define print_id
set $arylen = $ary->as.heap.len
end
set $result = $aryptr[($serial % ID_ENTRY_UNIT) * ID_ENTRY_SIZE + $t]
- print_string $result
+ if $result != RUBY_Qnil
+ print_string $result
+ else
+ echo undef\n
+ end
end
end
end