[PATCH] D81450: [ObjectYAML][ELF] Add support for emitting the .debug_line section.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 02:42:51 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, hiraditya, aprantl, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

This patch enables yaml2elf emit the .debug_line section.

Test cases for emitting the dwarf64 .debug_line section and opcodes will be added later.

Known issues:

- We should replace `InitialLength` with `Format` and `Length`
- Currently implementation of the .debug_line section only fully supports DWARFv2, some header fields in DWARFv4 and DWARFv5 is missing, e.g., `header_length` in DWARFv4, `address_size` and `segment_selector_size` in DWARFv5.
- Some opcodes relies on the .debug_info section, we should warn user about it.

These issues will be addressed in a follow-up patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81450

Files:
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/lib/ObjectYAML/ELFEmitter.cpp
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-line.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81450.269451.patch
Type: text/x-patch
Size: 16108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200609/cda456b0/attachment.bin>


More information about the llvm-commits mailing list