diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-26 20:08:29 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-26 20:08:29 +0000 |
commit | b60ebf03c39c47a805e3329dd05a075db75487cb (patch) | |
tree | 19f70c7335db3f471b050d0ffdf8011662c823c7 /libbacktrace/elf.c | |
parent | 8afb7c4b8a5f9f158e32723a7cf0ed0f514ecea7 (diff) | |
download | gcc-b60ebf03c39c47a805e3329dd05a075db75487cb.tar.gz |
PR other/55087
* posix.c (backtrace_open): Add does_not_exist parameter.
* elf.c (phdr_callback): Do not warn if shared library could not
be opened.
* fileline.c (fileline_initialize): Update calls to
backtrace_open.
* internal.h (backtrace_open): Update declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192861 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/elf.c')
-rw-r--r-- | libbacktrace/elf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index b396c47ef29..8433a72fcd6 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -810,6 +810,7 @@ phdr_callback (struct dl_phdr_info *info, size_t size ATTRIBUTE_UNUSED, { struct phdr_data *pd = (struct phdr_data *) pdata; int descriptor; + int does_not_exist; fileline elf_fileline_fn; int found_dwarf; @@ -821,7 +822,8 @@ phdr_callback (struct dl_phdr_info *info, size_t size ATTRIBUTE_UNUSED, || info->dlpi_addr == 0) return 0; - descriptor = backtrace_open (info->dlpi_name, pd->error_callback, pd->data); + descriptor = backtrace_open (info->dlpi_name, pd->error_callback, pd->data, + &does_not_exist); if (descriptor < 0) return 0; |