fix compilation errors related to C specifics

This commit is contained in:
2020-02-05 16:14:52 +04:00
parent ef055f0324
commit cdacdce8e5
29 changed files with 93 additions and 92 deletions
@@ -99,7 +99,7 @@ int find_regnum(uint32_t op)
return -1;
}
pst_reg_error pst_get_reg(pst_context* ctx, int regno, uint64_t& regval)
pst_reg_error pst_get_reg(pst_context* ctx, int regno, uint64_t* regval)
{
#ifdef USE_LIBUNWIND
int ret = unw_get_reg(ctx->curr_frame, regno, &regval);
+1 -1
View File
@@ -33,6 +33,6 @@ typedef enum {
REG_EXPR_ERROR
} pst_reg_error;
pst_reg_error pst_get_reg(pst_context* ctx, int regno, uint64_t& regval);
pst_reg_error pst_get_reg(pst_context* ctx, int regno, uint64_t* regval);
#endif /* __PST_REGISTERS_H__ */