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.
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityIs 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