]> git.ipfire.org Git - thirdparty/gcc.git/commit - libbacktrace/elf.c
backtrace.h (backtrace_syminfo_callback): Add symsize argument.
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Nov 2013 14:46:03 +0000 (15:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Nov 2013 14:46:03 +0000 (15:46 +0100)
commit1f96a712d15825c10b61db3febb85b7cd4c245dc
treea719603a47f4d7b58bb0a1113198349a988a2ba4
parente4effef72de27cd0a9b16f9c6190ab7f97e92a5c
backtrace.h (backtrace_syminfo_callback): Add symsize argument.

* backtrace.h (backtrace_syminfo_callback): Add symsize argument.
* elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
last argument.
* btest.c (struct symdata): Add size field.
(callback_three): Add symsize argument.  Copy it to the data->size
field.
(f23): Set symdata.size to 0.
(test5): Likewise.  If sizeof (int) > 1, lookup address of
((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
values.

From-SVN: r205028
libbacktrace/ChangeLog
libbacktrace/backtrace.h
libbacktrace/btest.c
libbacktrace/elf.c