This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Make win32-nat use ptid_t.tid
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: gdb-patches at sourceware dot org, Pedro Alves <pedro at codesourcery dot com>
- Date: Fri, 8 Aug 2008 01:03:54 -0400
- Subject: Re: Make win32-nat use ptid_t.tid
- References: <200808080327.41751.pedro@codesourcery.com>
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 <pedro@codesourcery.com>
>
> 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