summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 08:31:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 08:31:24 +0000
commitda356c2fafdc8500792312cc971556dbb1493076 (patch)
treed5e31eb39c17be6738058b1e3cfd253e4645a8ba /.gdbinit
parentd40432de0a4a8fb742c1b7ee74d13975f83ea772 (diff)
downloadruby-da356c2fafdc8500792312cc971556dbb1493076.tar.gz
ruby-da356c2fafdc8500792312cc971556dbb1493076.tar.xz
ruby-da356c2fafdc8500792312cc971556dbb1493076.zip
* debug.c (dummy_gdb_enums.various): added ENCODING and CODERANGE
constants. * .gdbinit: use enum constants. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit10
1 files changed, 5 insertions, 5 deletions
diff --git a/.gdbinit b/.gdbinit
index 0c5600be9..e5ebb03c1 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -69,14 +69,14 @@ define rp
printf "(assoc) "
end
end
- printf "encoding:%d ", ($flags & (RUBY_FL_USER8|RUBY_FL_USER9|RUBY_FL_USER10|RUBY_FL_USER11)) >> RUBY_ENCODING_SHIFT
- if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == 0
+ printf "encoding:%d ", ($flags & RUBY_ENCODING_MASK) >> RUBY_ENCODING_SHIFT
+ if ($flags & RUBY_ENC_CODERANGE_MASK) == 0
printf "coderange:unknown "
else
- if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER12
+ if ($flags & RUBY_ENC_CODERANGE_MASK) == RUBY_ENC_CODERANGE_7BIT
printf "coderange:7bit "
else
- if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER13
+ if ($flags & RUBY_ENC_CODERANGE_MASK) == RUBY_ENC_CODERANGE_VALID
printf "coderange:valid "
else
printf "coderange:broken "
@@ -97,7 +97,7 @@ define rp
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
+ printf "encoding:%d ", ($flags & RUBY_ENCODING_MASK) >> RUBY_ENCODING_SHIFT
print (struct RRegexp *)$arg0
else
if ($flags & RUBY_T_MASK) == RUBY_T_ARRAY