From: Kai Tietz <Kai.Tietz@onevision.com>
To: "Pierre Muller" <muller@ics.u-strasbg.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] 32-bit support for windows thread information block
Date: Wed, 14 Jan 2009 13:00:00 -0000 [thread overview]
Message-ID: <OFBE13041F.7FC09774-ONC125753E.004410CB-C125753E.00476A4F@onevision.de> (raw)
In-Reply-To: <000001c9763a$4d6cda90$e8468fb0$@u-strasbg.fr>
gdb-patches-owner@sourceware.org wrote on 14.01.2009 12:21:53:
> I implemented two new command that display
> a part of the information of the
> thread information block and on
> the structured exception handler chain.
> I added these two command to the "info w32" command
> prefix, but got into troubles appearing below.
>
> I have several questions regarding the 64-bit support of
> windows nat files:
>
> 1) Do hardware watchpoints work?
> the problem is that the dr[8] array is
> defined as a unsigned type,
> is this enough for win64?
> Is "unsigned" type a 64-bit ?
>
> In the _CONTEXT struct
> the debug registers are defined as DWORD64...
For address above 4GB hardware watchpoints aren't working, reasoned by
truncation.
> 2) Is GetThreadSelectorEntry function
> working in win64 ?
> The reason of the question is that
> I have no win64 machine... so that I cannot test directly,
> the windows SDK says that it only works on i386 based
> machines, but that is sort of vague.
> Furthermore, the base address that is computed
> with this function is a 32bit address, so I am
> wondering if it is meaningful or not...
Yes, it is present, but I am not sure if structure has still the same
layout.
> The reason of the second question is that I have a
> patch that is able to display the thread information block
> and the structured exception handler chain on
> a win32 program, but I did not find much information on
> the the win64 equivalent, apart from the fact
> that it is apparently the $gs selector that is
> used on x86_64 in windows64, instead of the $fs for win32.
Cheers,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
next prev parent reply other threads:[~2009-01-14 13:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 11:22 Pierre Muller
2009-01-14 13:00 ` Kai Tietz [this message]
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
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=OFBE13041F.7FC09774-ONC125753E.004410CB-C125753E.00476A4F@onevision.de \
--to=kai.tietz@onevision.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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