Skip to content

Commit

Permalink
* .gdbinit (rp): show negative fixnum correctly.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Mar 30, 2009
1 parent c11f636 commit 2a58eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gdbinit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Mar 30 19:04:25 2009 Tanaka Akira <[email protected]>

* .gdbinit (rp): show negative fixnum correctly.

Mon Mar 30 12:12:46 2009 Nobuyoshi Nakada <[email protected]>

* vm_eval.c (eval_string_with_cref): replaces the message if
Expand Down

0 comments on commit 2a58eeb

Please sign in to comment.