From: Joshua ben Jore Date: 2009-10-19T12:26:26+09:00 Subject: [ruby-core:26159] Re: RTypedData type unavailable to gdb? On Sun, Oct 18, 2009 at 7:35 PM, Nobuyoshi Nakada wrote: > Hi, > > At Mon, 19 Oct 2009 08:41:05 +0900, > Joshua ben Jore wrote in [ruby-core:26155]: >> � (gdb) p (RTypedData)0 >> � No symbol "RTypedData" in current context. > > RTypedData is not typedefed nor a pointer. > > p (struct RTypedData *)0 > >> My current script creates a top level function rb_ps which walks down >> from ruby_current_vm down through the living_threads hash and attempts >> to get the rb_thread_t pointers from the RTypedData objects. No such >> luck. Can someone lend some advice to how to proceed here? My OS X >> manual says `nm -a' shows all the symbols but I don't see anything >> that looks like any data type names in there. > > Thank you, it seems useful, and I committed fixed version. . It wasn't done. I'd only gotten as far as possibly fetching the rb_thread_t struct but there's more to just unpack the callstack, then more later to get the parameters. Josh