Re: Fix 32-bit thread debugging on x86_64

2005-08-03 Thread Andi Kleen
On Sun, Jul 31, 2005 at 04:05:58PM -0400, Daniel Jacobowitz wrote: > The IA32 ptrace emulation currently returns the wrong registers for > fs/gs; it's returning what x86_64 calls gs_base. We need regs.gsindex > in order for GDB to correctly locate the TLS area. Without this patch, > the 32-bit

Re: Fix 32-bit thread debugging on x86_64

2005-08-03 Thread Andi Kleen
On Sun, Jul 31, 2005 at 04:05:58PM -0400, Daniel Jacobowitz wrote: The IA32 ptrace emulation currently returns the wrong registers for fs/gs; it's returning what x86_64 calls gs_base. We need regs.gsindex in order for GDB to correctly locate the TLS area. Without this patch, the 32-bit GDB

Fix 32-bit thread debugging on x86_64

2005-07-31 Thread Daniel Jacobowitz
The IA32 ptrace emulation currently returns the wrong registers for fs/gs; it's returning what x86_64 calls gs_base. We need regs.gsindex in order for GDB to correctly locate the TLS area. Without this patch, the 32-bit GDB testsuite bombs on a 64-bit kernel. With it, results look about like

Fix 32-bit thread debugging on x86_64

2005-07-31 Thread Daniel Jacobowitz
The IA32 ptrace emulation currently returns the wrong registers for fs/gs; it's returning what x86_64 calls gs_base. We need regs.gsindex in order for GDB to correctly locate the TLS area. Without this patch, the 32-bit GDB testsuite bombs on a 64-bit kernel. With it, results look about like