summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 21:20:59 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 21:20:59 +0000
commite233ca15e02aeae3d6db60421bec5509d65991c6 (patch)
tree4e9a98e29a4d72c99066bc9ec6482b681bb39433 /vm_dump.c
parenta16c76f7c5dbab7d630f87d0327be79b91725d6b (diff)
* configure.in: check whether backtrace(3) works well or not.
* vm_dump.c: set HAVE_BACKTRACE 0 if BROKEN_BACKTRACE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 04d9610..7bb35ea 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -427,6 +427,10 @@ rb_vmdebug_thread_dump_state(VALUE self)
#ifndef HAVE_BACKTRACE
#define HAVE_BACKTRACE 0
#endif
+#ifdef BROKEN_BACKTRACE
+# undef HAVE_BACKTRACE
+# define HAVE_BACKTRACE 0
+#endif
#if HAVE_BACKTRACE
# include <execinfo.h>
#elif defined(_WIN32)