Re: [PING] [RFC-v3] Add windows Thread Information Block

Mark Kettenis
2010-03-10T18:48:17Z

> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Wed, 10 Mar 2010 18:14:19 +0100
>
> Despite all my efforts,
> I never managed to get advices on the non-windows part of
> this patch :(

Which non-windows part of this patch?

> 2009-07-03 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * windows-nat.c (thread_info): Add THREAD_LOCAL_BASE field.
> (windows_add_thread): Add TLB argument of type 'void *'.
> (fake_create_process): Adapt windows_add_thread call.
> (get_windows_debug_event): Idem.
> (windows_xfer_partial): Handle TARGET_OBJECT_OSDATA type.
> (_initialize_windows_nat): Replace info_w32_cmdlist
> initialization by a call to init_w32_command_list.
> (info_w32_command, info_w32_cmdlist): Removed from here...
> to windows-tdep.c file.
> * windows-tdep.h (info_w32_cmdlist): Declare.
> (init_w32_command_list): New external function
> declaration.
> * windows-tdep.c: Add several headers.
> (info_w32_cmdlist): to here, made global.
> (thread_information_32): New struct.
> (thread_information_64): New struct.
> (TIB_NAME): New char array.
> (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
> (maint_display_all_tib): New static variable.
> (windows_get_tlb_type): New function.
> (tlb_value_read, tlb_value_write): New functions.
> (tlb_value_funcs): New static struct.
> (tlb_make_value): New function.
> (display_one_tib): New function.
> (display_tib): New function.
> (info_w32_command): Moved from windows-nat.c.
> (init_w32_command_list): New function.
> (_initialize_windows_tdep): New function.
> New "maint set/show show-all-tib" command
> New "$_tlb" internal variable.
>
> gdbserver/ChangeLog entry:
>
> 2009-07-01 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * gdbserver/win32-low.h (win32_thread_info): Add THREAD_LOCAL_BASE
> field.
> * gdbserver/win32-low.c (child_add_thread): Add TLB argument.
> (get_child_debug_event): Adapt to child_add_thread change.
> (win32_qxfer_osdata): New function.
> (win32_target_op): Set qxfer_osdata field to win32_qxfer_osdata.