mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-20 13:10:07 -08:00
define enum for image type
This commit is contained in:
1 parent
0d0a6d3980
commit
d0d1786cec
3 files changed
+14
-5
No files matched your search
@@ -1473,15 +1473,15 @@ dw_ext_from_params(String8 producer, Arch arch, ImageType image_type)
|
||||
DW_Ext ext = DW_Ext_Null;
|
||||
switch (image_type) {
|
||||
case Image_Null: break;
|
||||
case Image_COFF_PE: {
|
||||
case Image_CoffPe: {
|
||||
if (str8_match(str8_lit("clang"), producer, StringMatchFlag_RightSideSloppy|StringMatchFlag_CaseInsensitive)) {
|
||||
ext = DW_Ext_GNU | DW_Ext_LLVM;
|
||||
} else if (str8_match(str8_lit("GNU"), producer, StringMatchFlag_RightSideSloppy|StringMatchFlag_CaseInsensitive)) {
|
||||
ext = DW_Ext_GNU;
|
||||
}
|
||||
} break;
|
||||
case Image_ELF32:
|
||||
case Image_ELF64: {
|
||||
case Image_Elf32:
|
||||
case Image_Elf64: {
|
||||
if (str8_match(str8_lit("clang"), producer, StringMatchFlag_RightSideSloppy|StringMatchFlag_CaseInsensitive)) {
|
||||
ext = DW_Ext_GNU | DW_Ext_LLVM;
|
||||
} else if (str8_match(str8_lit("GNU"), producer, StringMatchFlag_RightSideSloppy|StringMatchFlag_CaseInsensitive)) {
|
||||
|
||||
Reference in new issue
Block a user