diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-30 08:06:22 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-30 08:06:22 +0000 |
commit | a926288bee10a49a8ce095a3997db075256d697e (patch) | |
tree | 64bbdb44edf88deb78d17379be424f1af07cbed3 | |
parent | 4bded50f0ddab6913f9c1c74d0173d21633c3a46 (diff) | |
download | ruby-a926288bee10a49a8ce095a3997db075256d697e.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | vm_dump.c | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -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. @@ -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) |