* .gdbinit (rp): detect and show RTypedData.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-06-05 01:04:15 +00:00
Родитель 2ef85089ec
Коммит 8bca09325d
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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
if ((struct RTypedData *)($arg0))->typed_flag == 1
printf "T_DATA(typed): "
print (struct RTypedData *)($arg0)
else
printf "T_DATA: " printf "T_DATA: "
print (struct RData *)($arg0) 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: "

Просмотреть файл

@ -1,3 +1,7 @@
Sat Jun 5 10:03:31 2010 Tanaka Akira <akr@fsij.org>
* .gdbinit (rp): detect and show RTypedData.
Sat Jun 5 09:56:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Jun 5 09:56:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options): revert r25330, so that $0 can be seen * ruby.c (process_options): revert r25330, so that $0 can be seen