[llvm-dev] RFC: Add DWARF support for yaml2obj (original) (raw)
Xing GUO via llvm-dev llvm-dev at lists.llvm.org
Thu May 21 01:47:54 PDT 2020
- Previous message: [llvm-dev] RFC: Add DWARF support for yaml2obj
- Next message: [llvm-dev] RFC: Add DWARF support for yaml2obj
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/21/20, Adrian Prantl <aprantl at apple.com> wrote:
I think the example looks like it would be really useful for many categories of testcases! Will it still be possible to manually specify the .debugabbrev section when this is desired after you are done?
Yes, I think it works. There are two ways to edit the .debug_abbrev section.
i) Edit the "Attr:" and "Form:" entries of a DIE in the ".debug_info" section. This controls the generation of the ".debug_abbrev" section at a high level since "yaml2obj" generates the ".debug_abbrev" section according to the contents from debug information entries.
ii) Edit the ".debug_abbrev" directly. This controls the generation of the ".debug_abbrev" section at a low level. We will have to hardcode the tag and attributes for each DIE. Editing the section in this way doesn't need a "debug_info" entry in the "DWARF".
Additionally, if we have the "debug_info" entry and the "debug_abbrev" entry at the same time, the latter one will overwrite the tags and attributes generated by the former one.
Does it make sense?
-- Cheers, Xing
- Previous message: [llvm-dev] RFC: Add DWARF support for yaml2obj
- Next message: [llvm-dev] RFC: Add DWARF support for yaml2obj
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]