From 0153887c3da394fd78973c50a457efc164a6758d Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Tue, 23 Jul 2013 13:12:00 +0400 Subject: [PATCH] elf.c (backtrace_initialize): Pass elf_fileline_fn to dl_iterate_phdr callbacks. * elf.c (backtrace_initialize): Pass elf_fileline_fn to dl_iterate_phdr callbacks. From-SVN: r201158 --- libbacktrace/ChangeLog | 5 +++++ libbacktrace/elf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 2fd4e8a3e63..1f1d21e4829 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2013-07-23 Alexander Monakov + + * elf.c (backtrace_initialize): Pass elf_fileline_fn to + dl_iterate_phdr callbacks. + 2013-03-25 Ian Lance Taylor * alloc.c: #include . diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index ef9bcdfb495..36761899458 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -862,7 +862,7 @@ backtrace_initialize (struct backtrace_state *state, int descriptor, pd.state = state; pd.error_callback = error_callback; pd.data = data; - pd.fileline_fn = fileline_fn; + pd.fileline_fn = &elf_fileline_fn; pd.found_sym = &found_sym; pd.found_dwarf = &found_dwarf;