[POWERPC] Switch to using user_regset-based core dumps
authorRoland McGrath <roland@redhat.com>
Thu, 20 Dec 2007 11:58:12 +0000 (03:58 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Feb 2008 09:40:17 +0000 (20:40 +1100)
This switches powerpc to using the user_regset-based code for ELF core
dumps.  The core dumps come out exactly the same either way, except that
the NT_PPC_VMX note is now omitted for any thread that never touched its
Altivec registers (thread_struct.vr_used).

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/elf.h

index 6bd07ef78ac42b27aac921d650a2b04f6856c45b..fd9bf8b39424fe1dd5cfd0db1b04826b0b70d978 100644 (file)
@@ -167,6 +167,7 @@ typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32];
 #define elf_check_arch(x) ((x)->e_machine == ELF_ARCH)
 
 #define USE_ELF_CORE_DUMP
+#define CORE_DUMP_USE_REGSET
 #define ELF_EXEC_PAGESIZE      PAGE_SIZE
 
 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical