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: Make win32-nat use ptid_t.tid


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


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