Is there any way to set a breakpoint at the specific location on the stack in OllyDbg?
I have some value (argument of the function) on the stack and I want to break on every memory access at this location.
Thanks in advance.
Is there any way to set a breakpoint at the specific location on the stack in OllyDbg?
I have some value (argument of the function) on the stack and I want to break on every memory access at this location.
Thanks in advance.
Breakpoint -> Hardware, on access -> [size]. A Dword is 4 bytes, which is how much bytes the stack viewer shows.
If the arguments of the function on stack is a pointer (such as pThreadId for CreateThread), then follow the steps below. Otherwise if the argument is some value (like CreationFlags) then refer to AcidShout's answer.
1. Right click on the address on the stack -> Chose Follow in Dump.

2. In the dump window, right click on the value -> Breakpoint -> Hardware on access -> Byte / Word / Dword
