[PATCH] D139638: [llvm-dwarfutil] Add accelerator tables to dwarfutil

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 15:54:26 PST 2022


clayborg added a comment.

So all debuggers ignore .debug_pubnames and .debug_pubtypes so I don't see any reasons to add them to any binaries. Even if llvm-dwarfutil creates full versions of these accelerator tables, no debuggers will use them. So I am wondering if we should just not emit them. That being said, LLDB _will_ use the Apple accelerator tables (.apple_XXX) if we can generate them. I created the Apple accelerator tables many years ago and the .debug_names were influenced by the Apple tables when they were added to the DWARF specification. So at least LLDB knows it can trust the Apple accelerator tables if they are there. And everyone can trust the .debug_names section. So I would suggest we emit either .debug_names all the time, even for DWARF4 and earlier or emit apple accelerator tables instead of the older .debug_pubXXX sections.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139638



More information about the llvm-commits mailing list