summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 22:34:41 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 22:34:41 (GMT)
commit6ba2c24cc4f04311e48a35e5c43847205f511acc (patch)
treeebfc95b3cbb02deabfed096f6b86fb359e47bcaa /vm_dump.c
parent664813677963792e2ad36ef9370107dc41c7f27b (diff)
* 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
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 23f0e57..92e701c 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -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);