create and use mapping between DW_OP_Rex/breg(x) and appropriate
platform-dependent register number
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user