[PATCH] D137882: [DWARFLibrary] Add support to re-construct cu-index
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 15:36:21 PST 2022
dblaikie added a comment.
In D137882#3967704 <https://reviews.llvm.org/D137882#3967704>, @ayermolo wrote:
> bin/llvm-lit -a /data/users/ayermolo/server-llvm/llvm-project/llvm/test/tools/llvm-dwp/X86/invalid-cu-index.s
>
> F25484289: image.png <https://reviews.llvm.org/F25484289>
>
> bin/llvm-dwarfdump --manaully-generate-unit-index --debug-cu-index /data/users/ayermolo/llvm-build-release/test/tools/llvm-dwp/X86/Output/invalid-cu-index.s.tmp.dwp
> F25484297: image.png <https://reviews.llvm.org/F25484297>
> bin/llvm-dwarfdump --debug-cu-index /data/users/ayermolo/llvm-build-release/test/tools/llvm-dwp/X86/Output/invalid-cu-index.s.tmp.dwp
> F25484301: image.png <https://reviews.llvm.org/F25484301>
These don't quite look like how I'd expect. I'd have thought the manually-generate-unit-index would be different/correct, showing the value in the manual generation over the pre-built but buggy/overflowed index?
> # This test checks that with invalid offset in the cu index
> # we can reconstruct it manually.
>
> # RUN: llvm-mc --filetype=obj --triple x86_64 %s -o %t.dwp
> # RUN: llvm-dwarfdump --manaully-generate-unit-index --debug-cu-index %t.dwp | FileCheck %s
>
> # This test checks that we parse correctly cu-index that has entries over 4GB.
> # It is setup to work with current llvm implementation where cu-index is 32bit.
> # Once we move to 64bit internal representation, it will need to be modified.
Sorry, I'm not following here ^ could you explain in more detail/rephrase?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137882/new/
https://reviews.llvm.org/D137882
More information about the llvm-commits
mailing list