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

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