create and use mapping between DW_OP_Rex/breg(x) and appropriate

platform-dependent register number
This commit is contained in:
2020-01-14 09:12:00 +04:00
parent b955926d86
commit 6b43827894
2 changed files with 90 additions and 41 deletions
+3 -2
View File
@@ -16,8 +16,9 @@ typedef struct __dwarf_op_map {
typedef struct __dwarf_reg_map {
int regno; // platform-dependent register number
const char* regname; // register name if
const char* dwarf_name; // name of DWARF operation
const char* regname; // register name
uint32_t op_num; // number of DWARF DW_OP_reg(x)/DW_OP_breg(x) operation corresponds to this register
} dwarf_reg_map;
const dwarf_op_map* find_op_map(int op);
int find_regnum(uint32_t op);