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

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