mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Correct condition of r39302
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52b0181306
commit
10103e8cc7
1 changed files with 10 additions and 10 deletions
20
vm_dump.c
20
vm_dump.c
|
@ -424,18 +424,18 @@ rb_vmdebug_thread_dump_state(VALUE self)
|
|||
return Qnil;
|
||||
}
|
||||
|
||||
#ifndef HAVE_BACKTRACE
|
||||
#define HAVE_BACKTRACE 0
|
||||
#endif
|
||||
#ifdef BROKEN_BACKTRACE
|
||||
# undef HAVE_BACKTRACE
|
||||
#if defined(HAVE_BACKTRACE)
|
||||
# if HAVE_LIBUNWIND
|
||||
# undef backtrace
|
||||
# define backtrace unw_backtrace
|
||||
# elif defined(BROKEN_BACKTRACE)
|
||||
# undef HAVE_BACKTRACE
|
||||
# define HAVE_BACKTRACE 0
|
||||
# endif
|
||||
#else
|
||||
# define HAVE_BACKTRACE 0
|
||||
#endif
|
||||
#if HAVE_LIBUNWIND
|
||||
# define HAVE_BACKTRACE 1
|
||||
# undef backtrace
|
||||
# define backtrace unw_backtrace
|
||||
#endif
|
||||
|
||||
#if HAVE_BACKTRACE
|
||||
# include <execinfo.h>
|
||||
#elif defined(_WIN32)
|
||||
|
|
Loading…
Reference in a new issue