[PATCH] D123623: [Debuginfo][llvm-dwarfutil] Add check for unsupported debug sections.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 03:55:37 PDT 2022


avl added inline comments.


================
Comment at: llvm/test/tools/llvm-dwarfutil/ELF/error-unsupported-types.test:4
+
+# RUN: llvm-dwarfutil --garbage-collection --tombstone=maxpc %p/Inputs/type-units.o %t1 2>&1 | FileCheck %s -DFILE=%p/Inputs/type-units.o
+
----------------
jhenderson wrote:
> avl wrote:
> > jhenderson wrote:
> > > Why does this use a canned binary rather than yaml2obj?
> > yaml2obj does not support debug_types.
> Do you need a fully fledged .debug_types though, or could you just use a regular section called .debug_types (containing either garbage or is empty etc)?
yes, I do. If it is an empty .debug_types section or section filled with garbage then the error like "broken type unit" is displayed. It does not allow to get that: "type units are not currently supported" diagnostic.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123623/new/

https://reviews.llvm.org/D123623



More information about the llvm-commits mailing list