Blame SOURCES/gdb-rhbz1125820-ppc64le-enablement-22of37.patch

01917d
commit 718ee4dc9b09491707420ae403ad1ce8dfdb61b2
01917d
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
01917d
Date:   Thu Jan 30 19:12:35 2014 +0100
01917d
01917d
    Add support for AT_HWCAP2 auxv entry
01917d
    
01917d
    Recent ppc64 Linux kernels provide a new auxv entry AT_HWCAP2,
01917d
    which is currently not recognized by GDB, causing every use of
01917d
    "info auxv" to show an error.
01917d
    
01917d
    This commit adds the AT_HWCAP2 define to include/elf/common.h
01917d
    and handles it in GDB.
01917d
    
01917d
    include/elf/ChangeLog:
01917d
    
01917d
    	* common.h (AT_HWCAP2): Define.
01917d
    
01917d
    gdb/ChangeLog:
01917d
    
01917d
    	* auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
01917d
01917d
Index: gdb-7.6.1/gdb/auxv.c
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/gdb/auxv.c
01917d
+++ gdb-7.6.1/gdb/auxv.c
01917d
@@ -441,6 +441,7 @@ fprint_target_auxv (struct ui_file *file
01917d
 	  TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec);
01917d
 	  TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str);
01917d
 	  TAG (AT_RANDOM, _("Address of 16 random bytes"), hex);
01917d
+	  TAG (AT_HWCAP2, _("Extension of AT_HWCAP"), hex);
01917d
 	  TAG (AT_EXECFN, _("File name of executable"), str);
01917d
 	  TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec);
01917d
 	  TAG (AT_SYSINFO, _("Special system info/entry points"), hex);
01917d
Index: gdb-7.6.1/include/elf/common.h
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/include/elf/common.h
01917d
+++ gdb-7.6.1/include/elf/common.h
01917d
@@ -954,6 +954,7 @@
01917d
 #define AT_BASE_PLATFORM 24		/* String identifying real platform,
01917d
 					   may differ from AT_PLATFORM.  */
01917d
 #define AT_RANDOM	25		/* Address of 16 random bytes.  */
01917d
+#define AT_HWCAP2	26		/* Extension of AT_HWCAP.  */
01917d
 #define AT_EXECFN	31		/* Filename of executable.  */
01917d
 /* Pointer to the global system page used for system calls and other
01917d
    nice things.  */