This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PING] [RFC-v3] Add windows Thread Information Block
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: pierre dot muller at ics-cnrs dot unistra dot fr
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Mar 2010 19:48:04 +0100 (CET)
- Subject: Re: [PING] [RFC-v3] Add windows Thread Information Block
- References: <000901c9f5ef$4ee06f10$eca14d30$@u-strasbg.fr> <20090626155254.GA15627@caradoc.them.org> <001f01c9fa5a$0e1297f0$2a37c7d0$@u-strasbg.fr> <831vp047u8.fsf@gnu.org> <20090701180419.GA8152@ednor.casa.cgf.cx> <003a01c9fbf8$f3e91610$dbbb4230$@u-strasbg.fr> <20090703194220.GA30668@ednor.casa.cgf.cx> <002901cac075$1f8f44b0$5eadce10$@muller@ics-cnrs.unistra.fr>
> 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.