summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gdbinit2
-rw-r--r--ChangeLog4
-rw-r--r--debug.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/.gdbinit b/.gdbinit
index b153412..a542b71 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,5 +1,5 @@
define rp
- if dummy_gdb_enums.special_consts
+ if ruby_dummy_gdb_enums.special_consts
end
if (VALUE)($arg0) & RUBY_FIXNUM_FLAG
printf "FIXNUM: %ld\n", (long)($arg0) >> 1
diff --git a/ChangeLog b/ChangeLog
index 3f2bdfe..d0de7f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Aug 5 18:46:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c (ruby_dummy_gdb_enums): made public. [ruby-dev:39001]
+
Wed Aug 5 12:54:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
diff --git a/debug.c b/debug.c
index 874d1c8..c0bbaf5 100644
--- a/debug.c
+++ b/debug.c
@@ -18,7 +18,7 @@
#include "id.h"
/* for gdb */
-static const union {
+const union {
enum ruby_special_consts special_consts;
enum ruby_value_type value_type;
enum ruby_tag_type tag_type;
@@ -67,7 +67,7 @@ static const union {
RUBY_NODE_LMASK = NODE_LMASK,
RUBY_NODE_FL_NEWLINE = NODE_FL_NEWLINE
} various;
-} dummy_gdb_enums;
+} ruby_dummy_gdb_enums;
const VALUE RUBY_FL_USER19 = FL_USER19;