fix compilation errors related to C specifics
This commit is contained in:
@@ -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, ®val);
|
||||
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user