diff mbox series

[03/11] Handle typedefs for CodeView

Message ID 20240618001713.24034-4-mark@harmstone.com
State New
Headers show
Series CodeView variables and type system | expand

Commit Message

Mark Harmstone June 18, 2024, 12:17 a.m. UTC
gcc/
            * dwarf2codeview.cc (get_type_num): Handle typedefs.
---
 gcc/dwarf2codeview.cc | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Jeff Law June 24, 2024, 12:30 a.m. UTC | #1
On 6/17/24 6:17 PM, Mark Harmstone wrote:
>      gcc/
>              * dwarf2codeview.cc (get_type_num): Handle typedefs.
Thanks.  I've pushed this to the trunk.

jeff
diff mbox series

Patch

diff --git a/gcc/dwarf2codeview.cc b/gcc/dwarf2codeview.cc
index eb7c1270e31..5006a176260 100644
--- a/gcc/dwarf2codeview.cc
+++ b/gcc/dwarf2codeview.cc
@@ -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;