On 8/12/24 6:24 PM, Mark Harmstone wrote:
Outputs CodeView S_LDATA32 symbols, for static variables within
functions, along with S_BLOCK32 and S_END for the beginning and end of
lexical blocks.

gcc/
        * dwarf2codeview.cc (enum cv_sym_type): Add S_END and S_BLOCK32.
        (write_local_s_ldata32): New function.
        (write_unoptimized_local_variable): New function.
        (write_s_block32): New function.
        (write_s_end): New function.
        (write_unoptimized_function_vars): New function.
        (write_function): Call write_unoptimized_function_vars.
This series is fine. I'm not particularly jazzed about how much target specific data shows up in patch #2. It's probably safe to assume the mapping of register number of the codeview number doesn't match the dwarf map. It's probably also safe to assume we're not supporting codeview on any targets other than x86 and ix86?

jeff

Reply via email to