This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] windows-nat.c: Better failure handling of GetThreadSelectorEntry call


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]