From: Tom Tromey Date: Fri, 23 Oct 2020 22:51:10 +0000 (-0600) Subject: Fix bug in read_3ubyte_unaligned_inc X-Git-Tag: elfutils-0.182~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6031e78d207e976c3add03be7294388cd375682;p=thirdparty%2Felfutils.git Fix bug in read_3ubyte_unaligned_inc The read_3ubyte_unaligned_inc macro calls read_2ubyte_unaligned, but it should call read_3ubyte_unaligned. Signed-off-by: Tom Tromey --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 8b0b583a1..1ac4e8a97 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,8 @@ +2020-10-23 Tom Tromey + + * memory-access.h (read_3ubyte_unaligned_inc): Call + read_3ubyte_unaligned. + 2020-09-03 Mark Wielaard * dwarf.h: Add DW_CFA_AARCH64_negate_ra_state. diff --git a/libdw/memory-access.h b/libdw/memory-access.h index a39ad6d29..14436a714 100644 --- a/libdw/memory-access.h +++ b/libdw/memory-access.h @@ -363,7 +363,7 @@ read_3ubyte_unaligned (Dwarf *dbg, const unsigned char *p) #define read_3ubyte_unaligned_inc(Dbg, Addr) \ - ({ uint32_t t_ = read_2ubyte_unaligned (Dbg, Addr); \ + ({ uint32_t t_ = read_3ubyte_unaligned (Dbg, Addr); \ Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 3); \ t_; })