* vm_dump.c (rb_print_backtrace): current implementation

uses dladdr to get the path of objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-03-31 22:34:41 +00:00
Родитель 6648136779
Коммит 6ba2c24cc4
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Apr 1 07:27:15 2014 NARUSE, Yui <naruse@ruby-lang.org>
* vm_dump.c (rb_print_backtrace): current implementation
uses dladdr to get the path of objects.
Mon Mar 31 23:57:45 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/readline/extconf.rb: fix typo, `$defs` not `$DEFS`.

Просмотреть файл

@ -683,7 +683,7 @@ rb_print_backtrace(void)
#define MAX_NATIVE_TRACE 1024
static void *trace[MAX_NATIVE_TRACE];
int n = backtrace(trace, MAX_NATIVE_TRACE);
#ifdef USE_ELF
#if defined(USE_ELF) && defined(HAVE_DLADDR)
rb_dump_backtrace_with_lines(n, trace);
#else
char **syms = backtrace_symbols(trace, n);