From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13597 invoked by alias); 11 Mar 2010 00:24:14 -0000 Received: (qmail 13589 invoked by uid 22791); 11 Mar 2010 00:24:13 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Mar 2010 00:24:09 +0000 Received: (qmail 24875 invoked from network); 11 Mar 2010 00:24:08 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Mar 2010 00:24:08 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PING] [RFC-v3] Add windows Thread Information Block Date: Thu, 11 Mar 2010 00:24:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: "Pierre Muller" References: <000901c9f5ef$4ee06f10$eca14d30$@u-strasbg.fr> <20090703194220.GA30668@ednor.casa.cgf.cx> <002901cac075$1f8f44b0$5eadce10$@muller@ics-cnrs.unistra.fr> In-Reply-To: <002901cac075$1f8f44b0$5eadce10$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003110024.05957.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00409.txt.bz2 On Wednesday 10 March 2010 17:14:19, Pierre Muller wrote: > +typedef struct thread_information_block_32 > + { > + uint32_t current_seh; /* %fs:0x0000 */ > + uint32_t current_top_of_stack; /* %fs:0x0004 */ > + uint32_t current_bottom_of_stack; /* %fs:0x0008 */ > + uint32_t sub_system_tib; /* %fs:0x000c */ > + uint32_t fiber_data; /* %fs:0x0010 */ > + uint32_t arbitrary_data_slot; /* %fs:0x0014 */ > + uint32_t linear_address_tib; /* %fs:0x0018 */ > + uint32_t environment_pointer; /* %fs:0x001c */ > + uint32_t process_id; /* %fs:0x0020 */ > + uint32_t current_thread_id; /* %fs:0x0024 */ > + uint32_t thread_local_storage; /* %fs:0x0028 */ > + uint32_t active_rpc_handle; /* %fs:0x002c */ > + uint32_t process_environment_block; /* %fs:0x0030 */ > + uint32_t last_error_number; /* %fs:0x0034 */ > + } > +thread_information_32; Where did you get these offsets from? According to , thread_local_storage should be 0x2c, and active_rpc_handle 0x28, as in, someone has it swapped. I think I actually tested that wikipedia had it right last time I asked you this, but in any case, can you confirm? -- Pedro Alves