]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: New get_uleb128_unchecked to use with already checked Dwarf_Abbrev.
authorMark Wielaard <mark@klomp.org>
Tue, 26 Dec 2017 10:52:06 +0000 (11:52 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 1 Jan 2018 21:48:56 +0000 (22:48 +0100)
commitbfb2117387eb98eae4f0aace7c32061a27483adc
tree829e1e40297a219f4e315edfcc711f780ba0b4f1
parent68cd423edbba61af902eed2abe85578f1c134a25
libdw: New get_uleb128_unchecked to use with already checked Dwarf_Abbrev.

When creating a Dwarf_Abbrev in dwarf_getabbrev (__libdw_getabbrev) we
already check it is fully readable from the .debug_abbrev section. So
whenever we reread it later using the attrp pointer we don't have to
check it again. Introduce get_uleb128_unchecked to use for ulebs we
know are safe to read directly.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_child.c
libdw/dwarf_getabbrevattr.c
libdw/dwarf_getattrs.c
libdw/dwarf_hasattr.c
libdw/memory-access.h