[YAML][DebugInfo] Split DWARF with YAML

Hi folks,

I was wondering if there is a way to write “dwo” (split dwarf) sections with YAML.
Basically, the yaml2obj tool would parse such file by using the ObjestYAML library.

It is needed for some testing purposes.

Best regards,
Djordje

Hi Djordje,

AFAIK, yaml2obj doesn't support writing "dwo" sections. It might be a
good idea to add split DWARF support to yaml2obj.

Hi Xing,

The same I’ve figured out when looking at DWARF implementation from ObjestYAML.

Djordje

Right, as Xing mentioned, I don’t think any support has been added to yaml2obj for the .dwo sections yet. You might be able to workaround it by pretending they are regular DWARF sections and then using llvm-objcopy to rename the necessary sections, but I would think adding yaml2obj support would be the better option.

James

I’ll try with the llvm-objcopy, but I don’t think we can workaround all the features from the split DWARF…

but I would think adding yaml2obj support would be the better option
I agree. We can add a TODO there. Unfortunately, I don’t have time to add such thing, but I’d be happy if someone picks that implementation. :slight_smile:

Thanks,
Djordje