Everhart, Glenn (FUSA) From: Chtchetkine, Vladimir [VChtchetkine@Starbase.com] Sent: Wednesday, April 21, 1999 5:39 PM To: 'Paul Bunn'; 'ntdev@atria.com' Subject: RE: [ntdev] How do we create a hardcoded breakpoint? To prevent from stopping (and BSOD) use macro: #define DEBUGBREAK() __try { KdBreakPoint(); } \ __except( EXCEPTION_EXECUTE_HANDLER) {} So if debugger is present you will stop inside of the __try statement. If debugger is not present the exception will be handled and execution will proceed as if there was not a breakpoint. Regards, Vladimir Vladimir Chtchetkine, StarBase Corporation [http://www.starbase.com] mailto:vchtchetkine@starbase.com > -----Original Message----- > From: Paul Bunn [SMTP:paul@ultrabac.com] > Sent: Wednesday, April 21, 1999 9:48 AM > To: 'ntdev@atria.com' > Subject: RE: [ntdev] How do we create a hardcoded breakpoint? > > Use the KdBreakPoint() macro and compile a checked-build version of your > driver. > Should break quite nicely. > Note that this will generate a STOP 0x1E (0x3, .., .., ..) error if the > debugger is not initialized on the target system though. > > Regards, > > Paul Bunn, BEI, 425-644-6000 > Microsoft MVP - WindowsNT > http://www.ultrabac.com > > > -----Original Message----- > From: jleclerc@galea.com [mailto:jleclerc@galea.com] > Sent: Wednesday, April 21, 1999 7:58 AM > To: ntdev@atria.com > Subject: [ntdev] How do we create a hardcoded breakpoint? > > > I want the driver to break on an hardcoded breakpoint and > ask in windbg to enter "g" to continue! > > Is it possible to do it? If yes, how? > > Thanks a lot! > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > [ To unsubscribe, send email to ntdev-request@atria.com with body > UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]