Blame SOURCES/gdb-rhbz1498758-1of5.patch

15e4b0
commit 8fe09d7421db51bc13c9228547d63e6315bd6bd0
15e4b0
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
15e4b0
Date:   Thu Sep 21 17:45:18 2017 +0200
15e4b0
15e4b0
    S/390: Fix Elf note swap s390_gs_bc vs. s390_gs_cb
15e4b0
    
15e4b0
    Fix two typos that resulted in swapping the BFD names for the core note
15e4b0
    register sections NT_S390_GS_CB and NT_S390_GS_BC.
15e4b0
    
15e4b0
    bfd/ChangeLog:
15e4b0
    
15e4b0
            * elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and
15e4b0
            NT_S390_GS_BC, correct the previously swapped invocations of
15e4b0
            elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb.
15e4b0
15e4b0
### a/bfd/ChangeLog
15e4b0
### b/bfd/ChangeLog
15e4b0
## -1,3 +1,9 @@
15e4b0
+2017-09-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15e4b0
+
15e4b0
+	* elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and
15e4b0
+	NT_S390_GS_BC, correct the previously swapped invocations of
15e4b0
+	elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb.
15e4b0
+
15e4b0
 2017-09-19  Alan Modra  <amodra@gmail.com>
15e4b0
 
15e4b0
 	PR 21441
15e4b0
--- a/bfd/elf.c
15e4b0
+++ b/bfd/elf.c
15e4b0
@@ -9698,14 +9698,14 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
15e4b0
     case NT_S390_GS_CB:
15e4b0
       if (note->namesz == 6
15e4b0
 	  && strcmp (note->namedata, "LINUX") == 0)
15e4b0
-	return elfcore_grok_s390_gs_bc (abfd, note);
15e4b0
+	return elfcore_grok_s390_gs_cb (abfd, note);
15e4b0
       else
15e4b0
 	return TRUE;
15e4b0
 
15e4b0
     case NT_S390_GS_BC:
15e4b0
       if (note->namesz == 6
15e4b0
 	  && strcmp (note->namedata, "LINUX") == 0)
15e4b0
-	return elfcore_grok_s390_gs_cb (abfd, note);
15e4b0
+	return elfcore_grok_s390_gs_bc (abfd, note);
15e4b0
       else
15e4b0
 	return TRUE;
15e4b0