[DWARF][GDB INDEX] Fix to deal with constant pool de-dupliation Summary:
authorAlexander Yermolovich <ayermolo@meta.com>
Wed, 22 Mar 2023 20:25:48 +0000 (13:25 -0700)
committerAlexander Yermolovich <ayermolo@meta.com>
Mon, 27 Mar 2023 22:34:00 +0000 (15:34 -0700)
commit4d64fcdd43a195302de216b57ddb685b1aafe297
treee5fb83b2579d5496af02f24696063fa5e77753d3
parente3b6b9299c9691c7dcde0f80b8af679a50540979
[DWARF][GDB INDEX] Fix to deal with constant pool de-dupliation Summary:

GDB 11.2 generates V8 version of gdb-index where it de-duplicates entries in
constant pool based on cu indices. Changed how constant pool entries are counted
to account for this.

Differential Revision: https://reviews.llvm.org/D146852
llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
llvm/test/DebugInfo/Inputs/dwarfdump-gdbindex-v8.elf-x86-64 [new file with mode: 0755]
llvm/test/DebugInfo/dwarfdump-dump-gdbindex-v8.test [new file with mode: 0644]