mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
fix check extension in attrib formatter
This commit is contained in:
+15
-18
@@ -616,26 +616,23 @@ dw_string_from_attrib_kind(Arena *arena, DW_Version ver, DW_Ext ext, DW_AttribKi
|
|||||||
String8 result = {0};
|
String8 result = {0};
|
||||||
|
|
||||||
//- rjf: try extensions
|
//- rjf: try extensions
|
||||||
if(result.size != 0)
|
while(ext)
|
||||||
{
|
{
|
||||||
while(ext)
|
U64 z = 64-clz64(ext);
|
||||||
|
if(z == 0)
|
||||||
{
|
{
|
||||||
U64 z = 64-clz64(ext);
|
break;
|
||||||
if(z == 0)
|
}
|
||||||
{
|
U64 flag = 1 << (z-1);
|
||||||
break;
|
ext &= ~flag;
|
||||||
}
|
switch(flag)
|
||||||
U64 flag = 1 << (z-1);
|
{
|
||||||
ext &= ~flag;
|
default:{}break;
|
||||||
switch(flag)
|
case DW_Ext_Null: break;
|
||||||
{
|
case DW_Ext_GNU: switch (kind) { DW_AttribKind_GNU_XList } break;
|
||||||
default:{}break;
|
case DW_Ext_LLVM: switch (kind) { DW_AttribKind_LLVM_XList } break;
|
||||||
case DW_Ext_Null: break;
|
case DW_Ext_APPLE: switch (kind) { DW_AttribKind_APPLE_XList } break;
|
||||||
case DW_Ext_GNU: switch (kind) { DW_AttribKind_GNU_XList } break;
|
case DW_Ext_MIPS: switch (kind) { DW_AttribKind_MIPS_XList } break;
|
||||||
case DW_Ext_LLVM: switch (kind) { DW_AttribKind_LLVM_XList } break;
|
|
||||||
case DW_Ext_APPLE: switch (kind) { DW_AttribKind_APPLE_XList } break;
|
|
||||||
case DW_Ext_MIPS: switch (kind) { DW_AttribKind_MIPS_XList } break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user