Jan Kratochvil [Wed, 30 Jan 2013 20:03:48 +0000 (21:03 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
root [Tue, 20 Nov 2012 15:04:24 +0000 (16:04 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Fri, 16 Nov 2012 16:33:39 +0000 (17:33 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Fri, 16 Nov 2012 16:16:37 +0000 (17:16 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Thu, 15 Nov 2012 18:31:02 +0000 (19:31 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Thu, 15 Nov 2012 18:22:49 +0000 (19:22 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Tue, 13 Nov 2012 20:07:33 +0000 (21:07 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Tue, 13 Nov 2012 19:38:05 +0000 (20:38 +0100)]
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86' into jankratochvil/forunwind-baseaddr-hookvars-corereport-unwindx86-nonx86
Jan Kratochvil [Wed, 10 Oct 2012 17:32:05 +0000 (19:32 +0200)]
backends/
* Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
* linux-core-note.c (ALIGN_PR_REG): New definitions.
(struct EBLHOOK(prstatus)): Change field pr_reg to anonymous union with
ALIGN_PR_REG.
(EXTRA_ITEMS): New macro.
* s390_corenote.c: New file.
* s390_init.c (s390x_core_note): New declaration.
(s390_init): Install s390x_core_note and s390_core_note.
* s390x_corenote.c: New file.
src/
* readelf.c (handle_core_items): Limit special repeated items handling
to single-item formats '\n', 'b' and 'B', assert OFFSET 0 there.
tests/
* run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
and s390x core notes.
* testfile67.bz2: New file.
* testfile68.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile67.bz2 and testfile68.bz2 .
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil [Wed, 10 Oct 2012 07:48:10 +0000 (09:48 +0200)]
backends/
* Makefile.am (INCLUDES): Add libdwfl.
(ppc64_SRCS): Add ppc64_get_func_pc.c.
* ppc64_get_func_pc.c: New file.
* ppc64_init.c (ppc64_init): Install get_func_pc and destr.
libdwfl/
* dwfl_module_addrsym.c (dwfl_module_addrsym) (get_section): New
function from ...
(dwfl_module_addrsym) (same_section): ... here. Call it.
(dwfl_module_addrsym) (found_sym): New function from ...
(dwfl_module_addrsym) (search_table): ... here. Call it. Try second
time with ebl_get_func_pc.
libebl/
* Makefile.am (gen_SOURCES): Add eblgetfuncpc.c.
* ebl-hooks.h (get_func_pc): New entry.
* eblgetfuncpc.c: New file.
* libebl.h (struct Dwfl_Module): New declaration.
(ebl_get_func_pc): New declaration.
* libeblP.h (struct ebl): New field backend.
tests/
* run-addrname-test.sh: New testcase for ppc64 function descriptors.
* testfile66.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile66.bz2.
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil [Wed, 17 Oct 2012 22:11:30 +0000 (00:11 +0200)]
libdwfl/
* argp-std.c (offline_find_elf): New function.
(offline_callbacks): Use it for FIND_ELF.
(struct parse_opt): New.
(parse_opt): New KEY ARGP_KEY_INIT. In other make HOOK struct
parse_opt pointer from former Dwfl pointer. Delay 'e and OPT_COREFILE
processing till ARGP_KEY_SUCCESS. Initialize state->INPUT already from
ARGP_KEY_SUCCESS. Modify the cleanup in ARGP_KEY_ERROR. Make the final state->INPUT initialization optional.
* libdwfl.h (dwfl_standard_argp): Extend the comment for USERDATA.
tests/
* run-addrname-test.sh: New test for PIE relocation.
* testfile70.core.bz2: New file.
* testfile70.exec.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
testfile70.exec.bz2 .
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil [Wed, 17 Oct 2012 22:11:30 +0000 (00:11 +0200)]
libdwfl/
2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
* argp-std.c (offline_find_elf): New function.
(offline_callbacks): Use it for FIND_ELF.
(struct parse_opt): New.
(parse_opt): New KEY ARGP_KEY_INIT. In other make HOOK struct
parse_opt pointer from former Dwfl pointer. Delay 'e and OPT_COREFILE
processing till ARGP_KEY_SUCCESS. Initialize state->INPUT already from
ARGP_KEY_SUCCESS. Modify the cleanup in ARGP_KEY_ERROR. Make the final state->INPUT initialization optional.
* libdwfl.h (dwfl_standard_argp): Extend the comment for USERDATA.
tests/
2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
* run-addrname-test.sh: New test for PIE relocation.
* testfile70.core.bz2: New file.
* testfile70.exec.bz2: New file.
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>