[all-commits] [llvm/llvm-project] f1be77: [DebugInfo] Make incorrect debug line extended opc...

James Henderson via All-commits all-commits at lists.llvm.org
Mon Jan 27 07:33:01 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f1be770ff6886a145db08b63397e8ddb6ac59bd0
      https://github.com/llvm/llvm-project/commit/f1be770ff6886a145db08b63397e8ddb6ac59bd0
  Author: James Henderson <jh7370 at my.bristol.ac.uk>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    M llvm/test/tools/llvm-dwarfdump/X86/Inputs/debug_line_malformed.s
    M llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

  Log Message:
  -----------
  [DebugInfo] Make incorrect debug line extended opcode length non-fatal

It is possible to try to keep parsing a debug line program even when the
length of an extended opcode does not match what is expected for that
opcode. This patch changes what was previously a fatal error to be
non-fatal. The parser now continues by assuming the the claimed length
is correct, even if it means moving the offset backwards.

Reviewed by: dblaikie

Differential Revision: https://reviews.llvm.org/D72155




More information about the All-commits mailing list