mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix gdb incompatibilies in rp_class, rb_ps_vm
Other changes are needed to bring .gdbinit up-to-date with current ruby. It looks like lldb is the preferred approach now, and that config *is* being kept up-to-date. Still, this might be helpful to someone?
This commit is contained in:
parent
6f3857f6a7
commit
01e8d393bc
Notes:
git
2022-08-20 12:24:57 +09:00
1 changed files with 5 additions and 5 deletions
10
.gdbinit
10
.gdbinit
|
@ -544,13 +544,13 @@ end
|
||||||
|
|
||||||
define rp_class
|
define rp_class
|
||||||
printf "(struct RClass *) %p", (void*)$arg0
|
printf "(struct RClass *) %p", (void*)$arg0
|
||||||
if ((struct RClass *)($arg0))->ptr.origin_ != $arg0
|
if RCLASS_ORIGIN((struct RClass *)($arg0)) != $arg0
|
||||||
printf " -> %p", ((struct RClass *)($arg0))->ptr.origin_
|
printf " -> %p", RCLASS_ORIGIN((struct RClass *)($arg0))
|
||||||
end
|
end
|
||||||
printf "\n"
|
printf "\n"
|
||||||
rb_classname $arg0
|
rb_classname $arg0
|
||||||
print/x *(struct RClass *)($arg0)
|
print/x *(struct RClass *)($arg0)
|
||||||
print *((struct RClass *)($arg0))->ptr
|
print *RCLASS_EXT((struct RClass *)($arg0))
|
||||||
end
|
end
|
||||||
document rp_class
|
document rp_class
|
||||||
Print the content of a Class/Module.
|
Print the content of a Class/Module.
|
||||||
|
@ -979,8 +979,8 @@ end
|
||||||
|
|
||||||
define rb_ps_vm
|
define rb_ps_vm
|
||||||
print $ps_vm = (rb_vm_t*)$arg0
|
print $ps_vm = (rb_vm_t*)$arg0
|
||||||
set $ps_thread_ln = $ps_vm->living_threads.n.next
|
set $ps_thread_ln = $ps_vm->ractor.main_ractor.threads.set.n.next
|
||||||
set $ps_thread_ln_last = $ps_vm->living_threads.n.prev
|
set $ps_thread_ln_last = $ps_vm->ractor.main_ractor.threads.set.n.prev
|
||||||
while 1
|
while 1
|
||||||
set $ps_thread_th = (rb_thread_t *)$ps_thread_ln
|
set $ps_thread_th = (rb_thread_t *)$ps_thread_ln
|
||||||
set $ps_thread = (VALUE)($ps_thread_th->self)
|
set $ps_thread = (VALUE)($ps_thread_th->self)
|
||||||
|
|
Loading…
Reference in a new issue