So let's say we have the following code:
0: lea rax, [rbp+8] 1: mov rcx, rax 2: mov rdx, 5 3: call my_fun
i want to get the actual argument of the my_fun call, which would be the
[rbp+8] local var in this case.
I tried getting the addresses of the arguments with:
addrs = idaapi.get_arg_addrs(3)
but that returns the address of
mov rcx, rax. From that i would need something like the use-definition chain on rax, which i couldn't find if supported by ida.
my ultimate goal is to cast all the arguments to my_fun calls to a specific type. so here, i want to change the type of the local var [ebp+8] to another type