diff options
author | Elliott Hughes <enh@google.com> | 2013-01-29 10:35:38 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-01-29 10:35:38 -0800 |
commit | f61fb576e60458251d36e44c702cabe9c0dbe1e2 (patch) | |
tree | 1bbab934a446c1173defe9c9e0d8e82c0041521f | |
parent | 38a260547ba65b495ddcb16ef32f219aff5e389e (diff) | |
parent | db9697b3b059469153e81bf9e8844fb8e23149ea (diff) | |
download | system_core-f61fb576e60458251d36e44c702cabe9c0dbe1e2.zip system_core-f61fb576e60458251d36e44c702cabe9c0dbe1e2.tar.gz system_core-f61fb576e60458251d36e44c702cabe9c0dbe1e2.tar.bz2 |
am db9697b3: am b94b038d: Merge "libcorkscrew will always HAVE_DLADDR."
# Via Android Git Automerger (1) and others
* commit 'db9697b3b059469153e81bf9e8844fb8e23149ea':
libcorkscrew will always HAVE_DLADDR.
-rw-r--r-- | libcorkscrew/backtrace.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libcorkscrew/backtrace.c b/libcorkscrew/backtrace.c index 3697d18..03dbd53 100644 --- a/libcorkscrew/backtrace.c +++ b/libcorkscrew/backtrace.c @@ -35,10 +35,8 @@ #include <cutils/atomic.h> #include <elf.h> -#if HAVE_DLADDR #define __USE_GNU // For dladdr(3) in glibc. #include <dlfcn.h> -#endif #if defined(__BIONIC__) @@ -256,7 +254,6 @@ void get_backtrace_symbols(const backtrace_frame_t* backtrace, size_t frames, if (mi->name[0]) { symbol->map_name = strdup(mi->name); } -#if HAVE_DLADDR Dl_info info; if (dladdr((const void*)frame->absolute_pc, &info) && info.dli_sname) { symbol->relative_symbol_addr = (uintptr_t)info.dli_saddr @@ -264,7 +261,6 @@ void get_backtrace_symbols(const backtrace_frame_t* backtrace, size_t frames, symbol->symbol_name = strdup(info.dli_sname); symbol->demangled_name = demangle_symbol_name(symbol->symbol_name); } -#endif } } release_my_map_info_list(milist); |