ruby-changes:16198
From: akr <ko1@a...>
Date: Sat, 5 Jun 2010 10:04:31 +0900 (JST)
Subject: [ruby-changes:16198] Ruby:r28162 (trunk): * .gdbinit (rp): detect and show RTypedData.
akr 2010-06-05 10:04:15 +0900 (Sat, 05 Jun 2010) New Revision: 28162 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28162 Log: * .gdbinit (rp): detect and show RTypedData. Modified files: trunk/.gdbinit trunk/ChangeLog Index: .gdbinit =================================================================== --- .gdbinit (revision 28161) +++ .gdbinit (revision 28162) @@ -268,8 +268,13 @@ print (struct RBasic *)($arg0) else if ($flags & RUBY_T_MASK) == RUBY_T_DATA - printf "T_DATA: " - print (struct RData *)($arg0) + if ((struct RTypedData *)($arg0))->typed_flag == 1 + printf "T_DATA(typed): " + print (struct RTypedData *)($arg0) + else + printf "T_DATA: " + print (struct RData *)($arg0) + end else if ($flags & RUBY_T_MASK) == RUBY_T_MATCH printf "T_MATCH: " Index: ChangeLog =================================================================== --- ChangeLog (revision 28161) +++ ChangeLog (revision 28162) @@ -1,3 +1,7 @@ +Sat Jun 5 10:03:31 2010 Tanaka Akira <akr@f...> + + * .gdbinit (rp): detect and show RTypedData. + Sat Jun 5 09:56:57 2010 Nobuyoshi Nakada <nobu@r...> * ruby.c (process_options): revert r25330, so that $0 can be seen -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/