* configure.in: add -fno-omit-frame-pointer if libexecinfo is used.

At least on FreeBSD ruby will crash on getting C backtrace
  when it is compiled with other than -O0.

* vm_dump.c: enable backtrace on FreeBSD even if with optimizations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-12-12 07:36:32 +00:00
parent b3f491d3cb
commit 486795d951
3 changed files with 14 additions and 3 deletions

View file

@ -424,9 +424,6 @@ rb_vmdebug_thread_dump_state(VALUE self)
return Qnil;
}
#if defined(__FreeBSD__) && defined(__OPTIMIZE__)
#undef HAVE_BACKTRACE
#endif
#ifndef HAVE_BACKTRACE
#define HAVE_BACKTRACE 0
#endif