On 6/17/24 6:17 PM, Mark Harmstone wrote:
Parse the DW_TAG_variable DIEs, and outputs S_GDATA32 (for global variables)
and S_LDATA32 (static global variables) symbols into the .debug$S section.

     gcc/
             * dwarf2codeview.cc (S_LDATA32, S_GDATA32): Define.
             (struct codeview_symbol): New structure.
             (sym, last_sym): New variables.
             (write_data_symbol): New function.
             (write_codeview_symbols): Call write_data_symbol.
             (add_variable, codeview_debug_early_finish): New functions.
             * dwarf2codeview.h (codeview_debug_early_finish): Prototype.
             * dwarf2out.cc
             (dwarf2out_early_finish): Call codeview_debug_early_finish.
Thanks.  I've pushed this to the trunk.

Just one question. I note you use #defines for the various constants. Any reason not to use a const object? At least with those you can print them in a debugger rather than having to look them up in the source code.

Just a thought. Naturally I'll be working my way through the rest of this kit.

jeff

Reply via email to