Re: [Valgrind-users] how to change the a register value of guest code in dirty call

2018-08-17 Thread Tom Hughes
On 17/08/18 10:11, shuai xi wrote: Follow the memcheck's code, i insert a dirty call in IRSB. Now i want to get and change a register(like rax) value in this dirty call. In vex , Register often shows as 't19 = GET:I64(16)'  or 'PUT(16) = t22'. Can i get the register's real address and change

[Valgrind-users] how to change the a register value of guest code in dirty call

2018-08-17 Thread shuai xi
Hello @all, Follow the memcheck's code, i insert a dirty call in IRSB. Now i want to get and change a register(like rax) value in this dirty call. In vex , Register often shows as 't19 = GET:I64(16)' or 'PUT(16) = t22'. Can i get the register's real address and change its value by the num 16?