On 8/18/24 7:15 PM, Mark Harmstone wrote:
Enable variable tracking when outputting CodeView debug information, and make
it so that we issue debug symbols for optimized variables in registers. This
consists of S_LOCAL symbols, which give the name and the type of local
variables, followed by S_DEFRANGE_REGISTER symbols for the register and the
code for which this applies.

gcc/
        * dwarf2codeview.cc (enum cv_sym_type): Add S_LOCAL and
        S_DEFRANGE_REGISTER.
        (write_s_local): New function.
        (write_defrange_register): New function.
        (write_optimized_local_variable_loc): New function.
        (write_optimized_local_variable): New function.
        (write_optimized_function_vars): New function.
        (write_function): Call write_optimized_function_vars if variable
        tracking enabled.
        * dwarf2out.cc (typedef var_loc_view): Move to dwarf2out.h.
        (struct dw_loc_list_struct): Likewise.
        * dwarf2out.h (typedef var_loc_view): Move from dwarf2out.cc.
        (struct dw_loc_list_struct): Likewise.
        * opts.cc (finish_options): Enable variable tracking for CodeView.
All four patches in this series are fine.

Thanks,
Jeff

Reply via email to