From b93bb5904afdd4b7b7a87497e30fe77a5e5a279d Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sat, 17 Feb 2024 17:14:11 -0800 Subject: [PATCH] more itype generation fixes --- src/raddbgi_from_pdb/raddbgi_from_pdb.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/raddbgi_from_pdb/raddbgi_from_pdb.c b/src/raddbgi_from_pdb/raddbgi_from_pdb.c index f40e27d7..38e0c6c8 100644 --- a/src/raddbgi_from_pdb/raddbgi_from_pdb.c +++ b/src/raddbgi_from_pdb/raddbgi_from_pdb.c @@ -1100,7 +1100,6 @@ p2r_convert(Arena *arena, P2R_ConvertIn *in) { RDI_U64 itype_types_cap = (U64)(itype_opl); RDI_U64 extra_types_chunk_cap = 1024; - rdim_type_chunk_list_push(arena, &itype_types, itype_types_cap); #define p2r_type_ptr_from_itype(itype) (((itype) < itype_opl) ? (&itype_types.first->v[(type_fwd_map[(itype)] ? type_fwd_map[(itype)] : (itype))]) : 0) for(CV_TypeId itype = 0; itype < itype_opl; itype += 1) { @@ -1143,7 +1142,7 @@ p2r_convert(Arena *arena, P2R_ConvertIn *in) ////////////////////////// //- rjf: build non-basic type // - if(!itype_is_basic) + if(!itype_is_basic && itype >= itype_first) { CV_RecRange *range = &tpi_leaf->leaf_ranges.ranges[itype-itype_first]; CV_LeafKind kind = range->hdr.kind; @@ -2562,6 +2561,11 @@ p2r_convert(Arena *arena, P2R_ConvertIn *in) CV_Reg cv_reg = regrel32->reg; U32 var_off = regrel32->reg_off; + if(str8_match(name, str8_lit("basics"), 0)) + { + int x = 0; + } + // rjf: determine if this is a parameter RDI_LocalKind local_kind = RDI_LocalKind_Variable; {