[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26159] Re: RTypedData type unavailable to gdb?

From: Joshua ben Jore <twists@...>
Date: 2009-10-19 03:26:26 UTC
List: ruby-core #26159
On Sun, Oct 18, 2009 at 7:35 PM, Nobuyoshi Nakada <nobu@ruby-lang.org> 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

In This Thread

Prev Next