On 6/29/24 4:06 PM, Mark Harmstone wrote:
Make everything more gdb-friendly by using an enum for type constants
rather than #defines.

     gcc/
             * dwarf2codeview.cc (enum cv_leaf_type): Define.
             (struct codeview_subtype): Use enum cv_leaf_type.
             (struct codeview_custom_type): Use enum cv_leaf_type.
             (write_lf_fieldlist): Add default to switch.
             (write_custom_types): Add default to switch.
             * dwarf2codeview.h (LF_MODIFIER, LF_POINTER): Undefine.
             (LF_PROCEDURE, LF_ARGLIST, LF_FIELDLIST, LF_BITFIELD): Likewise.
             (LF_INDEX, LF_ENUMERATE, LF_ARRAY, LF_CLASS): Likewise.
             (LF_STRUCTURE, LF_UNION, LF_ENUM, LF_MEMBER, LF_CHAR): Likewise.
             (LF_SHORT, LF_USHORT, LF_LONG, LF_ULONG, LF_QUADWORD): Likewise.
             (LF_UQUADWORD): Likewise.
OK for the trunk. Go ahead and commit it once your write access is all set up.

jeff

Reply via email to