summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index 09b65df..175c848 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -368,6 +368,7 @@ define rp_class
printf " -> %p", ((struct RClass *)($arg0))->ptr.origin
end
printf "\n"
+ rb_classname $arg0
print *(struct RClass *)($arg0)
print *((struct RClass *)($arg0))->ptr
end
@@ -735,7 +736,7 @@ end
define rb_ancestors
set $rb_ancestors_module = $arg0
while $rb_ancestors_module
- rp $rb_ancestors_module
+ rp_class $rb_ancestors_module
set $rb_ancestors_module = ((struct RClass *)($rb_ancestors_module))->ptr.super
end
end