Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb-patches@sourceware.org>
Subject: RE: [RFA/windows] 64-bit support for x86-64 windows debug registers
Date: Mon, 19 Jan 2009 08:59:00 -0000	[thread overview]
Message-ID: <003c01c97a14$30a45360$91ecfa20$@u-strasbg.fr> (raw)
In-Reply-To: <20090116201042.GA21690@ednor.casa.cgf.cx>



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Christopher Faylor
> Envoyé : Friday, January 16, 2009 9:11 PM
> À : gdb-patches@sourceware.org
> Objet : Re: [RFA/windows] 64-bit support for x86-64 windows debug
> registers
> 
> On Fri, Jan 16, 2009 at 11:38:28AM +0100, Pierre Muller wrote:
> >> From Kai Tietz
> >> Hello Pierre,
> >>
> >> for me it worked fine on w64. But of course a maintainer has to give
> >> his
> >> approval for this.
> >
> >  Thus, I resubmit the patch as a RFA.
> >
> >Christopher, is this patch OK?
> >
> >
> >Pierre Muller
> >Pascal language support maintainer for GDB
> >
> >ChangeLog entry:
> >
> >2009-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
> >
> >	* windows-nat.c: Fix debug registers for 64 bits.
> >	(dr): Change type to CORE_ADDR and size to 4.
> >	(dr6, dr7): New variables.
> >	(windows_add_thread, _windows_fetch_inferior_registers)
> >	(windows_continue, do_initial_windows_stuff)
> >	(cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): Adapt
> >	to changes above.
> 
> Couldn't we get the same effect by changing
> 
> static unsigned dr[8];
> 
> to
> 
> static uintptr_t dr[8];

  Maybe, but the new types used in my patch exactly match
the static definitions in i386-nat.c:

i386-nat.c:69:#define DR_NADDR  4       /* The number of debug address
registers.  */
i386-nat.c:170:static CORE_ADDR dr_mirror[DR_NADDR];
i386-nat.c:171:static unsigned dr_status_mirror, dr_control_mirror;

  This ensures that there will be no type conversion problems.

Pierre Muller
Pascal language support maintainer for GDB




      reply	other threads:[~2009-01-19  8:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 11:22 [RFC] 32-bit support for windows thread information block Pierre Muller
2009-01-14 13:00 ` Kai Tietz
2009-01-14 13:16   ` Pierre Muller
2009-01-14 13:31     ` Kai Tietz
2009-01-14 14:44       ` [RFC] 64-bit support for x86-64 windows debug registers Pierre Muller
2009-01-15 10:08         ` Kai Tietz
2009-01-16 10:39           ` [RFA/windows] " Pierre Muller
2009-01-16 20:11             ` Christopher Faylor
2009-01-19  8:59               ` Pierre Muller [this message]

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='003c01c97a14$30a45360$91ecfa20$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=gdb-patches@sourceware.org \
    /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