Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: muller@cerbere.u-strasbg.fr
To: Christopher Faylor <cgf@redhat.com>, gdb@sources.redhat.com
Subject: Re: x86 hardware breakpoint question
Date: Wed, 07 Nov 2001 18:38:00 -0000	[thread overview]
Message-ID: <3.0.6.32.20011117235959.008c4590@ics.u-strasbg.fr> (raw)
In-Reply-To: <20011117011031.GC19468@redhat.com>

At 20:10 16/11/01 -0500, Christopher Faylor wrote:
>On Fri, Nov 16, 2001 at 05:57:04PM -0500, DJ Delorie wrote:
>>
>>>   So I am surprised to hear that win32
>>> lets you set debug registers, but if that works, great!
>>
>>I don't know if it works, I just looked it up in the documentation.
>>
>>>  Are the debug registers process wide or
>>> thread specific in that case ?
>>
>>Well, it is Set*Thread*Context.
>
>Which is, conveniently enough, what gdb is already using.  :-)
>
>Did you find specific documentation on the hardware registers, though?
>
>I see this in the system header:
>
>    BYTE    ExtendedRegisters[MAXIMUM_SUPPORTED_EXTENSION];
>
>but I don't see any description about how to use them.

  No, these are for xmme registers of Pentium III
or possibly other registers of other kind of i386 compatible regs.

  The debug registers are DR0-3 DR6 and DR7.

DR0 to 3 are the four linear addresses watchpoints
and DR6 and DR7 are used for indicating type and size of
the different breakpoints.

  I think that DJ expects that we can directly write
the values of the DR registers using  SetThreadContext.
This needs to be tested.

ContextFlags field of context structure must contain
CONTEXT_DEBUG_REGISTERS which isn't yet included into 
CONTEXT_DEBUG used in win32-nat code.



  reply	other threads:[~2001-11-17 22:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-04 14:28 Steven Bauer
2001-11-05  6:38 ` Eli Zaretskii
2001-11-05 23:28   ` Pierre Muller
2001-11-06 12:54     ` Eli Zaretskii
2001-11-06 14:35       ` Christopher Faylor
2001-11-06 15:15         ` muller
2001-11-06 15:58         ` DJ Delorie
2001-11-06 17:12           ` muller
2001-11-06 18:13             ` DJ Delorie
2001-11-06 19:34               ` Christopher Faylor
2001-11-07 18:38                 ` muller [this message]
2001-11-05  8:25 ` Quality Quorum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20011117235959.008c4590@ics.u-strasbg.fr \
    --to=muller@cerbere.u-strasbg.fr \
    --cc=cgf@redhat.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox