Re: [RFC-v2] Add windows Thread Information Block

Pedro Alves
2009-07-01T17:18:01Z

[ sorry, missed one question ]

On Wednesday 01 July 2009 17:09:30, Pierre Muller wrote:
>
>   One more question:
>   What if we switch from debugging a win32 application to a win64,
> will the type of $_tib be also recomputed correctly?

Yes. The type is a gdbarch property (of the frame of the
current thread). For $_siginfo, the same function linux_get_siginfo_type
handles both x86 and amd64, because the structures are mostly
equivalent, but it's just as easy to install different
gdbarch callbacks on i386-cygwin-tdep.c and amd64-windows-tdep.c.

--
Pedro Alves