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 | 34a025674f08b42301fa2c788e6797e7ac4da657 (patch) | |
tree | 4cff4506e20631ec3b2c53e8e4ccbcfbe780a8f0 /.gdbinit | |
parent | da7771e6f9d9311fb683ce6a371b727f64749914 (diff) | |
download | ruby-34a025674f08b42301fa2c788e6797e7ac4da657.tar.gz ruby-34a025674f08b42301fa2c788e6797e7ac4da657.tar.xz ruby-34a025674f08b42301fa2c788e6797e7ac4da657.zip |
show regexp flags and encoding.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-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 |