This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] windows-nat.c: Better failure handling of GetThreadSelectorEntry call
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: gdb-patches at sourceware dot org, Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Date: Sat, 22 May 2010 13:36:49 -0400
- Subject: Re: [RFA] windows-nat.c: Better failure handling of GetThreadSelectorEntry call
- References: <001601caf92b$4b6a5450$e23efcf0$@muller@ics-cnrs.unistra.fr>
On Fri, May 21, 2010 at 11:19:27PM +0200, Pierre Muller wrote:
> It seems that, at least for Windows 2008,
>GetThreadSelectorEntry does not work for 64-bit programs,
>which doesn't really surprise me as the struct LDT_ENTRY
>is 32-bit specific.
> I first thought, let's disable this for win64, but
>after I thought, maybe later we will support 32-bit debugging
>on Windows-64 (possible according to Windows API).
>
> So I preferred to call GetLastError, and give a
>more precise failure message in that case.
>
> Is this OK?
yes.
cgf