]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH 03/11] Handle typedefs for CodeView
authorMark Harmstone <mark@harmstone.com>
Mon, 24 Jun 2024 00:30:02 +0000 (18:30 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 24 Jun 2024 00:30:02 +0000 (18:30 -0600)
gcc/
* dwarf2codeview.cc (get_type_num): Handle typedefs.

gcc/dwarf2codeview.cc

index eb7c1270e3198477b092d413307b05b92d9f9dc7..5006a176260921362ddbc5f0f8f5fa5d93d33383 100644 (file)
@@ -1024,6 +1024,12 @@ get_type_num (dw_die_ref type)
       t->num = get_type_num_base_type (type);
       break;
 
+    case DW_TAG_typedef:
+      /* FIXME - signed longs typedef'd as "HRESULT" should get their
+                own type (T_HRESULT) */
+      t->num = get_type_num (get_AT_ref (type, DW_AT_type));
+      break;
+
     default:
       t->num = 0;
       break;