Suppose main() --> f1(int,int,char) --> f2(int,int,char)-->f3(int,int,char) When in f3()...i get Rsp and Rbp using GetThreadContext...based on this how to get input arguments of all stack frames i.e, f3,f2,f1,main
I don't want to used DBGHELP::stackwalk API
- Can i get these arguments using APIs of any other dll apart from dbhelp ?
2.I don't know number of input arguments or number of local variables All i know is Rbp and Rsp Is there a way to determine number of arguments for any given frame ?
I am not able to understand how much offset i should skip either from Rsp or Rbp to reach to arguments
When i compile code with microsoft 'CL' compiler...then Rbp is zero and all access is done with respect to Rsp When i compile code with Intel 'ICL' the all accessing is happening with respect to Rbp when implementing which is better to take as reference Rsp or Rbp ?