From: Daniel Jacobowitz Date: Thu, 4 Aug 2005 20:41:09 +0000 (-0700) Subject: [PATCH] x86_64: fix 32-bit thread debugging X-Git-Tag: v2.6.13-rc6~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ed11b9dc07df0134248542ca8e7d40751a6052;p=pandora-kernel.git [PATCH] x86_64: fix 32-bit thread debugging 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 I'd expect, although there are still a handful of kernel-related failures (vsyscall related?). Signed-off-by: Daniel Jacobowitz Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed