]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
PR402327 Warning: DWARF2 CFI reader: unhandled DW_OP_ opcode 0x13 DW_OP_drop
authorMark Wielaard <mark@klomp.org>
Wed, 19 Dec 2018 19:14:03 +0000 (20:14 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 19 Dec 2018 19:14:03 +0000 (20:14 +0100)
readdwarf.c (dwarfexpr_to_dag) didn't handle DW_OP_drop.
Implement it by simply popping the last element on the stack.

NEWS
coregrind/m_debuginfo/readdwarf.c

diff --git a/NEWS b/NEWS
index dc41a2b17b2687b740e7e40fc1146e3c9f847d92..c257f76f47f1f5a9d188fa2a5e2d364722af38dc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -72,6 +72,7 @@ where XXXXXX is the bug number as listed below.
 401822  none/tests/ppc64/jm-vmx fails and produces assembler warnings
 402006  mark helper regs defined in final_tidyup before freeres_wrapper call
 402048  WARNING: unhandled ppc64[be|le]-linux syscall: 26 (ptrace)
+402327  Warning: DWARF2 CFI reader: unhandled DW_OP_ opcode 0x13 (DW_OP_drop)
 
 Release 3.14.0 (9 October 2018)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
index 70ab16d67ad57800ada40b409eb0cb060c6b58e3..3b7449a5be2d8b12f3f6df1c588464188a044209 100644 (file)
@@ -2853,6 +2853,12 @@ static Int dwarfexpr_to_dag ( const UnwindContext* ctx,
                VG_(printf)("DW_OP_deref");
             break;
 
+         case DW_OP_drop:
+            POP( ix );
+            if (ddump_frames)
+               VG_(printf)("DW_OP_drop");
+            break;
+
          default:
             if (!VG_(clo_xml))
                VG_(message)(Vg_DebugMsg,