[llvm-dev] RFC: Add DWARF support for yaml2obj (original) (raw)

Pavel Labath via llvm-dev llvm-dev at lists.llvm.org
Thu May 21 02:41:51 PDT 2020


Hello Xing,

I think the proposal looks very useful. I think it will be fairly tricky to get all of the details right though. There is a lot of "inferring" going on there, and getting that to work reliably and with predictable results will need careful consideration.

Some ideas/questions I had while looking this over:

regards, pavel

On 21/05/2020 10:47, Xing GUO via llvm-dev wrote:

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 .debugabbrev section. i) Edit the "Attr:" and "Form:" entries of a DIE in the ".debuginfo" section. This controls the generation of the ".debugabbrev" section at a high level since "yaml2obj" generates the ".debugabbrev" section according to the contents from debug information entries. ii) Edit the ".debugabbrev" directly. This controls the generation of the ".debugabbrev" 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 "debuginfo" entry in the "DWARF". Additionally, if we have the "debuginfo" entry and the "debugabbrev" entry at the same time, the latter one will overwrite the tags and attributes generated by the former one. Does it make sense?



More information about the llvm-dev mailing list