mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 09:18:09 +00:00
SP from arch helper
This commit is contained in:
committed by
Ryan Fleury
parent
9e965e345f
commit
16232b98d8
@@ -94,6 +94,17 @@ dw_reg_max_size_from_arch(Arch arch)
|
||||
return max_size;
|
||||
}
|
||||
|
||||
internal U64
|
||||
dw_sp_from_arch(Arch arch)
|
||||
{
|
||||
switch (arch) {
|
||||
default: NotImplemented;
|
||||
case Arch_Null: return 0;
|
||||
case Arch_x86: return DW_RegX86_Esp;
|
||||
case Arch_x64: return DW_RegX64_Rsp;
|
||||
}
|
||||
}
|
||||
|
||||
internal DW_AttribClass
|
||||
dw_attrib_class_from_attrib_v2(DW_AttribKind k)
|
||||
{
|
||||
|
||||
@@ -1746,6 +1746,7 @@ internal U64 dw_reg_size_from_code(Arch arch, DW_Reg reg_code);
|
||||
internal U64 dw_reg_pos_from_code(Arch arch, DW_Reg reg_code);
|
||||
internal U64 dw_reg_count_from_arch(Arch arch);
|
||||
internal U64 dw_reg_max_size_from_arch(Arch arch);
|
||||
internal U64 dw_sp_from_arch(Arch arch);
|
||||
|
||||
//- Attrib Class Encodings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user