Hi! Does anybody know if/how I can read from the callstack from a specific address? suppose I have a offset address from the base address of the callstack, how can I get the base address?
thanks :)
Hi! Does anybody know if/how I can read from the callstack from a specific address? suppose I have a offset address from the base address of the callstack, how can I get the base address?
thanks :)
This mightily depends on the platform ABI on which the executable is running. I'd recommend using one of the accepted disassembly tools for your platform of choice, these tools can usually help obtain such information. For example, IDA Pro for Windows and Linux.
In windows, you have an API to walk the complete callstack:
See this example in codeproject.com
Base address of the stack is in the register ESP on Windows x86 architecture. You can view ESP in the 'Registers' Windows of VS debugger