aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-21 13:17:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-21 13:17:54 +0000
commit1b4d0c76de494b8bdbcf83db6f0d0950d4ccc64a (patch)
treeeb20644bc712d3a0b244c54d6c38146b44200a30 /debug.c
parent7427390cadb47a77f9f0389e0bf477bb9b86ec70 (diff)
downloadruby-1b4d0c76de494b8bdbcf83db6f0d0950d4ccc64a.tar.gz
* template/id.h.tmpl, id.h (enum ruby_method_ids): added some IDs.
* debug.c (dummy_gdb_enums): added enum ruby_method_ids. * .gdbinit (rp): improved output of Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index b5f280508e..874d1c84b7 100644
--- a/debug.c
+++ b/debug.c
@@ -15,6 +15,7 @@
#include "debug.h"
#include "eval_intern.h"
#include "vm_core.h"
+#include "id.h"
/* for gdb */
static const union {
@@ -22,6 +23,7 @@ static const union {
enum ruby_value_type value_type;
enum ruby_tag_type tag_type;
enum node_type node_type;
+ enum ruby_method_ids method_ids;
enum {
RUBY_ENCODING_INLINE_MAX = ENCODING_INLINE_MAX,
RUBY_ENCODING_SHIFT = ENCODING_SHIFT,
@@ -96,7 +98,7 @@ ruby_debug_print_value(int level, int debug_level, const char *header, VALUE obj
VALUE str;
str = rb_inspect(obj);
fprintf(stderr, "DBG> %s: %s\n", header,
- obj == -1 ? "" : StringValueCStr(str));
+ obj == (VALUE)(SIGNED_VALUE)-1 ? "" : StringValueCStr(str));
fflush(stderr);
}
return obj;