]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH 04/11] Handle pointers for CodeView
authorMark Harmstone <mark@harmstone.com>
Mon, 24 Jun 2024 03:30:08 +0000 (21:30 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 24 Jun 2024 03:30:08 +0000 (21:30 -0600)
commit35cca2ccd908960d789533ddb93bb1bea5e71305
tree2e27c0d6cd5962c21335604205d4b84fe3f5be4b
parentde2ade6908c6f18b821d6d25b4f4833c850fa19c
[PATCH 04/11] Handle pointers for CodeView

Translates DW_TAG_pointer_type DIEs into LF_POINTER symbols, which get
output into the .debug$T section.

gcc/
* dwarf2codeview.cc (FIRST_TYPE): Define.
(struct codeview_custom_type): New structure.
(custom_types, last_custom_type): New variables.
(get_type_num): Prototype.
(write_lf_pointer, write_custom_types): New functions.
(codeview_debug_finish): Call write_custom_types.
(add_custom_type, get_type_num_pointer_type): New functions.
(get_type_num): Handle DW_TAG_pointer_type DIEs.
* dwarf2codeview.h (T_VOID): Define.
(CV_POINTER_32, CV_POINTER_64): Likewise.
(T_32PVOID, T_64PVOID): Likewise.
(CV_PTR_NEAR32, CV_PTR64, LF_POINTER): Likewise.
gcc/dwarf2codeview.cc
gcc/dwarf2codeview.h