Article View: comp.os.msdos.programmer
Article #1420How to use '386/'486 debug registers
From: Galen Kannarr
Date: Thu, 10 Sep 1992 18:25
Date: Thu, 10 Sep 1992 18:25
26 lines
1799 bytes
1799 bytes
I need to solve the following problem for which the 386/486 debug registers sound like just the ticket, but I have no documentation on their usage: I have a system that has several custom boards which generate hardware interrupts on a 486. One of the interrupt service routines is trashing several specific locations in memory, but I haven't been able to determine how. I'd like to detect when one of the locations is trashed and invoke (another) interrupt service routine to help me trace the problem. I can't use the 386 debug support of CodeView or other debuggers because they don't behave well when the debug trap occurs inside an interrupt. My code runs in Dos--real mode, no windows, no memory managers (for now!). One of my specific concerns is that I might have to enter protected mode to use the debug registers--I'm not sure I want to learn all about the intracies of that! Can anyone can point me to some good references (hopefully with examples)? Better yet, does anyone have any snippets of code that set up the debug registers and provide the shell of an isr for the interrupt generated? Please respond by e-mail. I'll post a collection of the responses. -- Galen Kannarr kannarr@mk1501.dseg.ti.com Texas Instruments Incorporated
Technical Details
Message-ID:
<kannarr.9.0@mk1501.dseg.ti.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!kannarr.dseg.ti.com!kannarrShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!kannarr.dseg.ti.com!kannarr From: kannarr@mk1501.dseg.ti.com (Galen Kannarr) Subject: How to use '386/'486 debug registers Message-ID: <kannarr.9.0@mk1501.dseg.ti.com> Keywords: 386 debug register breakpoint Sender: usenet@mksol.dseg.ti.com (Usenet News) Nntp-Posting-Host: kannarr.dseg.ti.com Organization: Texas Instruments Incorporated Date: Thu, 10 Sep 1992 18:25:49 GMT Lines: 26