зеркало из https://github.com/github/ruby.git
* 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:
Родитель
6648136779
Коммит
6ba2c24cc4
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче