1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merges r28086,r28162 and r28173 from trunk into ruby_1_9_2.

--
* .gdbinit (rp): mark singleton classes.
--
* .gdbinit (rp): detect and show RTypedData.
--
* .gdbinit (rp): show type name for RTypedData.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-06-10 15:58:46 +00:00
parent 100046ed75
commit 50d9b43b38
2 changed files with 16 additions and 3 deletions

View file

@ -105,7 +105,7 @@ define rp
print (struct RObject *)($arg0) print (struct RObject *)($arg0)
else else
if ($flags & RUBY_T_MASK) == RUBY_T_CLASS if ($flags & RUBY_T_MASK) == RUBY_T_CLASS
printf "T_CLASS: " printf "T_CLASS%s: ", ($flags & RUBY_FL_SINGLETON) ? "*" : ""
print (struct RClass *)($arg0) print (struct RClass *)($arg0)
else else
if ($flags & RUBY_T_MASK) == RUBY_T_ICLASS if ($flags & RUBY_T_MASK) == RUBY_T_ICLASS
@ -268,8 +268,13 @@ define rp
print (struct RBasic *)($arg0) print (struct RBasic *)($arg0)
else else
if ($flags & RUBY_T_MASK) == RUBY_T_DATA if ($flags & RUBY_T_MASK) == RUBY_T_DATA
printf "T_DATA: " if ((struct RTypedData *)($arg0))->typed_flag == 1
print (struct RData *)($arg0) printf "T_DATA(%s): ", ((struct RTypedData *)($arg0))->type->wrap_struct_name
print (struct RTypedData *)($arg0)
else
printf "T_DATA: "
print (struct RData *)($arg0)
end
else else
if ($flags & RUBY_T_MASK) == RUBY_T_MATCH if ($flags & RUBY_T_MASK) == RUBY_T_MATCH
printf "T_MATCH: " printf "T_MATCH: "

View file

@ -1,3 +1,11 @@
Sat Jun 5 16:39:13 2010 Tanaka Akira <akr@fsij.org>
* .gdbinit (rp): show type name for RTypedData.
Sat Jun 5 10:03:31 2010 Tanaka Akira <akr@fsij.org>
* .gdbinit (rp): detect and show RTypedData.
Fri May 28 20:35:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Fri May 28 20:35:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (blocking_region_begin): avoid RUBY_VM_CHECK_INTS() * thread.c (blocking_region_begin): avoid RUBY_VM_CHECK_INTS()