From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16955 invoked by alias); 8 Aug 2008 05:04:33 -0000 Received: (qmail 16944 invoked by uid 22791); 8 Aug 2008 05:04:31 -0000 X-Spam-Check-By: sourceware.org Received: from pool-72-74-94-104.bstnma.fios.verizon.net (HELO ednor.cgf.cx) (72.74.94.104) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Aug 2008 05:03:56 +0000 Received: by ednor.cgf.cx (Postfix, from userid 201) id D1217170A1; Fri, 8 Aug 2008 01:03:54 -0400 (EDT) Date: Fri, 08 Aug 2008 05:04:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Pedro Alves Subject: Re: Make win32-nat use ptid_t.tid Message-ID: <20080808050354.GA29641@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Pedro Alves References: <200808080327.41751.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808080327.41751.pedro@codesourcery.com> User-Agent: Mutt/1.5.16 (2007-06-09) 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: 2008-08/txt/msg00186.txt.bz2 On Fri, Aug 08, 2008 at 03:27:41AM +0100, Pedro Alves wrote: >As per subjects, this patch makes win32-nat use ptid_t.tid for thread >ids, instead of ptid_t.pid, so the core can know which process a thread >belongs to just by looking at the ptid. > >Tested on i686-pc-cygwin, no changes. > >OK? > >-- >Pedro Alves >2008-08-08 Pedro Alves > > Use ptid_t.tid to store thread ids instead of ptid_t.pid. > > * win32-nat.c (win32_add_thread): Change thread argument type to > ptid_t. Adjust. > (win32_add_thread): Adjust. > (win32_delete_thread): Change thread argument type to ptid_t. > Adjust. > (win32_fetch_inferior_registers, win32_store_inferior_registers) > (win32_resume, get_win32_debug_event, get_win32_debug_event) > (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust. > (init_win32_ops): Put to_magic last. > (win32_win32_thread_alive): Adjust. Ok. cgf