diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-09-21 17:45:18 +0200 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-09-21 17:45:18 +0200 |
commit | 8fe09d7421db51bc13c9228547d63e6315bd6bd0 (patch) | |
tree | 879cb31368c01541fd3e06225a332e5c57fa8c62 | |
parent | ba52cbb9d024f2e51bd50fac36a18a15ab88344c (diff) | |
download | gdb-8fe09d7421db51bc13c9228547d63e6315bd6bd0.zip gdb-8fe09d7421db51bc13c9228547d63e6315bd6bd0.tar.gz gdb-8fe09d7421db51bc13c9228547d63e6315bd6bd0.tar.bz2 |
S/390: Fix Elf note swap s390_gs_bc vs. s390_gs_cb
Fix two typos that resulted in swapping the BFD names for the core note
register sections NT_S390_GS_CB and NT_S390_GS_BC.
bfd/ChangeLog:
* elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and
NT_S390_GS_BC, correct the previously swapped invocations of
elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4c8c12c..ebefab3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2017-09-21 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and + NT_S390_GS_BC, correct the previously swapped invocations of + elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb. + 2017-09-19 Alan Modra <amodra@gmail.com> PR 21441 @@ -9698,14 +9698,14 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note) case NT_S390_GS_CB: if (note->namesz == 6 && strcmp (note->namedata, "LINUX") == 0) - return elfcore_grok_s390_gs_bc (abfd, note); + return elfcore_grok_s390_gs_cb (abfd, note); else return TRUE; case NT_S390_GS_BC: if (note->namesz == 6 && strcmp (note->namedata, "LINUX") == 0) - return elfcore_grok_s390_gs_cb (abfd, note); + return elfcore_grok_s390_gs_bc (abfd, note); else return TRUE; |