diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-17 13:11:13 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-17 13:11:13 +0000 |
commit | a0fc8b5564ade5a595ee5eb28a9aad3aea279036 (patch) | |
tree | 4cff4506e20631ec3b2c53e8e4ccbcfbe780a8f0 | |
parent | bd79a2eb2d62c9c79a27fa87470aecee17bca6ec (diff) | |
download | ruby-a0fc8b5564ade5a595ee5eb28a9aad3aea279036.tar.gz |
show regexp flags and encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | .gdbinit | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -74,10 +74,10 @@ define rp printf "coderange:unknown " else if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER12 - printf "coderange:single " + printf "coderange:7bit " else if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER13 - printf "coderange:multi " + printf "coderange:valid " else printf "coderange:broken " end @@ -90,7 +90,14 @@ define rp set print address off output ((struct RRegexp*)$arg0)->str set print address on - printf " " + printf " len:%d ", ((struct RRegexp*)$arg0)->len + if $flags & RUBY_FL_USER5 + printf "(literal) " + end + if $flags & RUBY_FL_USER4 + printf "(fixed) " + end + printf "encoding:%d ", ($flags & (RUBY_FL_USER8|RUBY_FL_USER9|RUBY_FL_USER10|RUBY_FL_USER11)) >> RUBY_ENCODING_SHIFT print (struct RRegexp *)$arg0 else if ($flags & RUBY_T_MASK) == RUBY_T_ARRAY |