* vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other

words backtrace() is libexecinfo) and it is optimized.
  This temporary hack should be also applied to other libexecinfo
  environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-30 08:06:22 +00:00
parent 4bded50f0d
commit a926288bee
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Tue Nov 30 16:29:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
* vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other
words backtrace() is libexecinfo) and it is optimized.
This temporary hack should be also applied to other libexecinfo
environments.
Tue Nov 30 16:23:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb: improve rdoc.

View File

@ -585,6 +585,9 @@ bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
return 0;
}
#if defined(__FreeBSD__) && defined(__OPTIMIZE__)
#undef HAVE_BACKTRACE
#endif
#if HAVE_BACKTRACE
# include <execinfo.h>
#elif defined(_WIN32)