updating base with stuff missing from metagens's base (was in the regular base of raddbg)

This commit is contained in:
ed
2025-02-06 18:00:46 -05:00
parent 1a3f7e0e8a
commit 887851e36c
14 changed files with 721 additions and 410 deletions
+19
View File
@@ -15,6 +15,15 @@ typedef enum OperatingSystem
}
OperatingSystem;
typedef enum ImageType
{
Image_Null,
Image_CoffPe,
Image_Elf32,
Image_Elf64,
Image_Macho
} ImageType;
typedef enum Architecture
{
Architecture_Null,
@@ -35,3 +44,13 @@ typedef enum Compiler
Compiler_COUNT,
}
Compiler;
////////////////////////////////
//~ rjf: Toolchain/Environment Enum Functions
internal U64 bit_size_from_arch(Arch arch);
internal U64 max_instruction_size_from_arch(Arch arch);
internal OperatingSystem operating_system_from_context(void);
internal Arch arch_from_context(void);
internal Compiler compiler_from_context(void);