I want to set in IDA breakpoint when a specific value is written on the stack.

I know how to set hardware breakpoint, but I can set it only by address.


You simply cannot. There are no mechanisms by which you can break execution on a specific value write. You'll have to use any other mechanisms, probably a memory breakpoint, and a conditional check of what's at the top of the stack.

  • How can I set memory breakPoint and check the top of stack? – Keystone Aug 31 '18 at 14:14
  • That'd be slow, but you can set a conditional memory breakpoint in IDA on stack pages. – NirIzr Aug 31 '18 at 18:23
  • Can you please tell me how do I set that? I know only on breakpoint I set on code or by address(hardware) i domt know about memory breakpoint in ida on stack pages. – Keystone Sep 1 '18 at 17:23

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.