diff options
author | Tom de Vries <tdevries@suse.de> | 2019-01-17 00:07:32 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2019-01-17 00:07:32 +0000 |
commit | e6f00c83f4478e7e9174edf39219a6e0c1043c6c (patch) | |
tree | c45e23be50aa5e71905476e8df2e1ee1299a73ec /libbacktrace/pecoff.c | |
parent | a34c2a3d19b096a97184253d1e1f225f13bd3a0f (diff) | |
download | gcc-e6f00c83f4478e7e9174edf39219a6e0c1043c6c.zip gcc-e6f00c83f4478e7e9174edf39219a6e0c1043c6c.tar.gz gcc-e6f00c83f4478e7e9174edf39219a6e0c1043c6c.tar.bz2 |
[libbacktrace] Return struct dwarf_data pointer from elf_add
Allow the caller of elf_add access to the struct dwarf_data pointer
corresponding to the added elf.
2019-01-17 Tom de Vries <tdevries@suse.de>
* internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
* dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
* elf.c (elf_add): Add and handle fileline_entry parameter. Add
argument to backtrace_dwarf_add call.
(phdr_callback, backtrace_initialize): Add argument to elf_add calls.
* pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
* xcoff.c (xcoff_add): Same.
From-SVN: r267993
Diffstat (limited to 'libbacktrace/pecoff.c')
-rw-r--r-- | libbacktrace/pecoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbacktrace/pecoff.c b/libbacktrace/pecoff.c index f51fc0f..cd20cbe 100644 --- a/libbacktrace/pecoff.c +++ b/libbacktrace/pecoff.c @@ -867,7 +867,8 @@ coff_add (struct backtrace_state *state, int descriptor, sections[DEBUG_STR].data, sections[DEBUG_STR].size, 0, /* FIXME */ - error_callback, data, fileline_fn)) + error_callback, data, fileline_fn, + NULL)) goto fail; *found_dwarf = 1; |