summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-19 13:35:26 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-19 13:35:26 +0000
commit3320a86571208a134a5cb54589fda8ec02895e58 (patch)
tree2749eaad1796f41e24e4a3770b20e4674d32bd5f /.gdbinit
parent64c919353410c81a8f7ababf3a9be269f7bb293c (diff)
downloadruby-3320a86571208a134a5cb54589fda8ec02895e58.tar.gz
ruby-3320a86571208a134a5cb54589fda8ec02895e58.tar.xz
ruby-3320a86571208a134a5cb54589fda8ec02895e58.zip
merges r23098 from trunk into ruby_1_9_1.
-- * .gdbinit (rp): show negative fixnum correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index 3ecc8f5a8..f333d7b07 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -3,7 +3,7 @@ end
define rp
if (VALUE)$arg0 & RUBY_FIXNUM_FLAG
- printf "FIXNUM: %ld\n", $arg0 >> 1
+ printf "FIXNUM: %ld\n", (long)$arg0 >> 1
else
if ((VALUE)$arg0 & ~(~(VALUE)0<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG
printf "SYMBOL(%ld)\n", $arg0 >> RUBY_SPECIAL_SHIFT