jon
June 15th, 2005, 06:15
I would like to know about how Olly implements Hardware Breakpoint..
I read the Olly help file, and also intel documentation about debug registers + Win internals, but I didnt understands exactly what happen.
I want to place Hardware Breakpoint in my proc (Not with Olly! I'll do that with Get\SetThreadContex) and to be able to catch it in my proc, somthing like raise exception and to catch it in my Exception Handler.
Example: I put H-BP on DWORD x (in memory.) ,the RD0 is set to &x and RD7 is set to break on write.
when I run this program with a debuger, it stopped after the attempt to write into x ( Olly think it was step over and stopped).
But if I run it without debuger, the execution stopped, without any exception(at least that is what im thinking now, becouse My handler is the first one, and it do nothing...)
help?
I read the Olly help file, and also intel documentation about debug registers + Win internals, but I didnt understands exactly what happen.
I want to place Hardware Breakpoint in my proc (Not with Olly! I'll do that with Get\SetThreadContex) and to be able to catch it in my proc, somthing like raise exception and to catch it in my Exception Handler.
Example: I put H-BP on DWORD x (in memory.) ,the RD0 is set to &x and RD7 is set to break on write.
when I run this program with a debuger, it stopped after the attempt to write into x ( Olly think it was step over and stopped).
But if I run it without debuger, the execution stopped, without any exception(at least that is what im thinking now, becouse My handler is the first one, and it do nothing...)
help?