This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 29082443fc1b8996cf9c6f2ecd8a838f48cac103
- From: krebbel at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 30 Sep 2014 07:17:38 -0000
- Subject: gdb and binutils branch master updated. 29082443fc1b8996cf9c6f2ecd8a838f48cac103
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 29082443fc1b8996cf9c6f2ecd8a838f48cac103 (commit)
via f968fe80b09ddc88538db2250b367fc0074739fa (commit)
via 174ad59a8eff83977a367d2cbb358c00fc470ee9 (commit)
via 970940347aef2ad1737d76cfabc12f6c9ca2ba89 (commit)
via f73d3ce7f83e5dc0ff749685376b144ba2dae471 (commit)
via cb24567a55ff937453f9b35934d3d6a0aad804b1 (commit)
via e5139de88ebbfb9ce9c121e526fa507d0fa4fcea (commit)
via c6d41a6f5380624846daca4d9aad5988b3946cbd (commit)
via 9845a0b521d8a9a117d37dbfdec56677dd7cdae8 (commit)
via 23ea9aebceb83a7b0e00da62de37d592ba51b616 (commit)
via c5b8d704bc8cf2fa2c6f23cbdb57c935550e6a6a (commit)
via 3636e6083c1dc792e2fe0142f45e9f86cc593528 (commit)
via d40362355c4db0a32381a2c44e0761030a5197de (commit)
via b61ddd6e2452974afa3fb8ecaf3dea74d47a0b5e (commit)
via 55a2906a4104af66db515294b18fca1fe63ea060 (commit)
via 022c98ab88317728d2f77fc1b3726bf1717dacff (commit)
via 5fac247f472389db46e7612d9e425991f77d64b7 (commit)
via 490496c342237f3fa2dd92adfe9e34516991f451 (commit)
via 50c5eb5335ff58688fd4652a40c791088a94d532 (commit)
via 66afae4f0ae73fee2ee19ced16110e184e6c0076 (commit)
via ed09174e35d31547d3b89f366890022fd1bee1ac (commit)
via dff2166ef98100e28ae22146bcdcd1a0aec9f952 (commit)
via 4108500a2ac989e770d91f076be4c9434e25afa8 (commit)
via a904c024b0760911288e865c62d91578fd887e3b (commit)
via 8f0435f75e3c9676d2e177ce055fed3155fd9476 (commit)
via 5aa82d050d61784823767fe3c982b6862fa47391 (commit)
from 6a5f3f4353a317dc16d7371fda2ec80835036af5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=29082443fc1b8996cf9c6f2ecd8a838f48cac103
commit 29082443fc1b8996cf9c6f2ecd8a838f48cac103
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Wed Sep 10 12:55:39 2014 +0000
Drop 'regset_from_core_section' gdbarch method
Now that all instances of the regset_from_core_section gdbarch method
have been replaced by the new iterator method, delete the obsolete
method from the gdbarch interface. Adjust all invocations and
references to it.
gdb/ChangeLog:
* gdbarch.sh (regset_from_core_section): Remove gdbarch method.
* gdbarch.c: Regenerate.
* gdbarch.h: Likewise.
* corelow.c (sniff_core_bfd): Drop presence check for deleted
gdbarch method 'regset_from_core_section'.
(get_core_register_section): Remove handling for the case that
regset == NULL and regset_from_core_section is defined.
(get_core_registers): Drop check for deleted method.
* procfs.c (procfs_do_thread_registers): Adjust comment.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f968fe80b09ddc88538db2250b367fc0074739fa
commit f968fe80b09ddc88538db2250b367fc0074739fa
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Wed Sep 10 12:42:14 2014 +0000
Linux targets: drop fall back to target method for 'make_corefile_notes'
Now that all Linux targets use the regset iterator, the fall back to
the deprecated target method is dropped.
gdb/ChangeLog:
* linux-nat.c (linux_nat_collect_thread_registers): Remove.
(linux_nat_make_corefile_notes): Remove.
(linux_target_install_ops): Do not set target method
'make_corefile_notes'.
* linux-tdep.c (struct linux_corefile_thread_data)<collect>:
Remove field.
(linux_corefile_thread_callback): Instead of args->collect, call
linux_collect_thread_registers.
(linux_make_corefile_notes): Remove 'collect' parameter. Return
NULL unless there is a regset iterator.
(linux_make_corefile_notes_1): Remove.
(linux_init_abi): Replace reference to linux_make_corefile_notes_1
by linux_make_corefile_notes.
* linux-tdep.h (linux_make_corefile_notes): Remove prototype.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=174ad59a8eff83977a367d2cbb358c00fc470ee9
commit 174ad59a8eff83977a367d2cbb358c00fc470ee9
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Wed Sep 10 12:02:43 2014 +0000
Drop target method 'fbsd_make_corefile_notes'
Now that all users of the target method 'fbsd_make_corefile_notes'
have been converted to the version in fbsd-tdep.c, the old method is
removed.
gdb/ChangeLog:
* fbsd-nat.c (find_signalled_thread, find_stop_signal)
(fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
Remove.
* fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=970940347aef2ad1737d76cfabc12f6c9ca2ba89
commit 970940347aef2ad1737d76cfabc12f6c9ca2ba89
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 17:06:22 2013 +0000
XTENSA: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For Xtensa targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
(xtensa_iterate_over_regset_sections): New.
(xtensa_gdbarch_init): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f73d3ce7f83e5dc0ff749685376b144ba2dae471
commit f73d3ce7f83e5dc0ff749685376b144ba2dae471
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 17:06:09 2013 +0000
VAX: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For VAX targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* vax-tdep.c (vax_regset_from_core_section): Remove.
(vax_iterate_over_regset_sections): New.
(vax_gdbarch_init): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cb24567a55ff937453f9b35934d3d6a0aad804b1
commit cb24567a55ff937453f9b35934d3d6a0aad804b1
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 17:05:44 2013 +0000
TILEGX: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For TILE-Gx GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
(tilegx_regset_from_core_section): Remove.
(tilegx_iterate_over_regset_sections): New.
(tilegx_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e5139de88ebbfb9ce9c121e526fa507d0fa4fcea
commit e5139de88ebbfb9ce9c121e526fa507d0fa4fcea
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 17:02:53 2013 +0000
SPARC: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For SPARC targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* sparc-tdep.c (sparc_regset_from_core_section): Remove.
(sparc_iterate_over_regset_sections): New.
(sparc32_gdbarch_init): Adjust gdbarch initialization.
* configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
targets.
* sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
(sparc64fbsd_init_abi): Call fbsd_init_abi.
* sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
target method 'make_corefile_notes'.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c6d41a6f5380624846daca4d9aad5988b3946cbd
commit c6d41a6f5380624846daca4d9aad5988b3946cbd
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:57:54 2013 +0000
SH: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For Super-H targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
'sizeof_gregset' and 'sizeof_fpregset'.
* sh-tdep.c (sh_regset_from_core_section): Remove.
(sh_iterate_over_regset_sections): New.
(sh_gdbarch_init): Adjust gdbarch initialization.
* sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
sizeof_fpregset.
* shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
'sizeof_gregset'.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9845a0b521d8a9a117d37dbfdec56677dd7cdae8
commit 9845a0b521d8a9a117d37dbfdec56677dd7cdae8
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Tue Sep 2 14:34:34 2014 +0000
SCORE: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For S+core targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* score-tdep.c (score7_linux_regset_from_core_section): Remove.
(score7_linux_iterate_over_regset_sections): New.
(score_gdbarch_init): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=23ea9aebceb83a7b0e00da62de37d592ba51b616
commit 23ea9aebceb83a7b0e00da62de37d592ba51b616
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Wed Sep 10 08:42:07 2014 +0000
PPC: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For PPC targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
FreeBSD targets.
* ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
method 'make_corefile_notes'.
* ppcfbsd-tdep.c (fbsd-tdep.h): Include.
(ppcfbsd_regset_from_core_section): Remove.
(ppcfbsd_iterate_over_regset_sections): New.
(ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
initialization.
* ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
(ppcnbsd_iterate_over_regset_sections): New.
(ppcnbsd_init_abi): Adjust.
* ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
(ppcobsd_iterate_over_regset_sections): New.
(ppcobsd_init_abi): Adjust.
* rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
(rs6000_aix_iterate_over_regset_sections): New.
(rs6000_aix_init_osabi): Adjust.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c5b8d704bc8cf2fa2c6f23cbdb57c935550e6a6a
commit c5b8d704bc8cf2fa2c6f23cbdb57c935550e6a6a
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Tue Sep 2 14:00:44 2014 +0000
NIOS2: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For Nios II GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
(nios2_regset_from_core_section): Remove.
(nios2_iterate_over_regset_sections): New.
(nios2_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3636e6083c1dc792e2fe0142f45e9f86cc593528
commit 3636e6083c1dc792e2fe0142f45e9f86cc593528
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:51:36 2013 +0000
MN10300: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'.
For MN10300 GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
(am33_iterate_over_regset_sections): New.
(am33_linux_init_osabi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d40362355c4db0a32381a2c44e0761030a5197de
commit d40362355c4db0a32381a2c44e0761030a5197de
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:49:03 2013 +0000
MIPS: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For MIPS targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
(mips_linux_iterate_over_regset_sections): New.
(mips_linux_init_abi): Adjust gdbarch initialization.
* mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
(mips64obsd_iterate_over_regset_sections): New.
(mips64obsd_init_abi): Adjust.
* mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
(mipsnbsd_iterate_over_regset_sections): New.
(mipsnbsd_init_abi): Adjust.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b61ddd6e2452974afa3fb8ecaf3dea74d47a0b5e
commit b61ddd6e2452974afa3fb8ecaf3dea74d47a0b5e
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:48:24 2013 +0000
M88K: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For M88K targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* m88k-tdep.c (m88k_regset_from_core_section): Remove.
(m88k_iterate_over_regset_sections): New.
(m88k_gdbarch_init): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55a2906a4104af66db515294b18fca1fe63ea060
commit 55a2906a4104af66db515294b18fca1fe63ea060
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Sat Mar 29 09:51:23 2014 +0000
IA64: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For IA-64 GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
(ia64_linux_iterate_over_regset_sections): New.
(ia64_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=022c98ab88317728d2f77fc1b3726bf1717dacff
commit 022c98ab88317728d2f77fc1b3726bf1717dacff
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Sat Mar 29 09:39:44 2014 +0000
M68K: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For m68k BSD and GNU/Linux targets, no longer define the gdbarch
method 'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
(m68kbsd_iterate_over_regset_sections): New.
(m68kbsd_init_abi): Adjust gdbarch initialization.
* m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
(m68k_linux_iterate_over_regset_sections): New.
(m68k_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5fac247f472389db46e7612d9e425991f77d64b7
commit 5fac247f472389db46e7612d9e425991f77d64b7
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:41:28 2013 +0000
M32R: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For m32r GNU/Linux targets, don't define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
(m32r_linux_regset_from_core_section): Remove.
(m32r_linux_iterate_over_regset_sections): New.
(m32r_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=490496c342237f3fa2dd92adfe9e34516991f451
commit 490496c342237f3fa2dd92adfe9e34516991f451
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Sat Mar 29 10:04:26 2014 +0000
X86: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For all I386 and AMD64 targets, replace all occurrences of
regset_from_core_section by the iterator method.
gdb/ChangeLog:
* amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
(amd64obsd_iterate_over_regset_sections): New.
(amd64obsd_core_init_abi): Adjust gdbarch initialization.
* i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
Remove.
(i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
regset_from_core_section initialization.
* i386-tdep.c (i386_regset_from_core_section): Remove.
(i386_iterate_over_regset_sections): New.
(i386_gdbarch_init): Adjust gdbarch initialization.
* i386-tdep.h (i386_regset_from_core_section): Remove prototype.
(i386_iterate_over_regset_sections): New prototype.
* i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
Remove.
(i386obsd_aout_iterate_over_regset_sections): New.
(i386obsd_aout_init_abi): Adjust gdbarch initialization.
* configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
targets.
* amd64fbsd-tdep.c (fbsd-tdep.h): Include.
(amd64fbsd_init_abi): Call fbsd_init_abi.
* i386fbsd-tdep.c (fbsd-tdep.h): Include.
(i386fbsd4_init_abi): Call fbsd_init_abi.
* amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
target method 'make_corefile_notes'.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=50c5eb5335ff58688fd4652a40c791088a94d532
commit 50c5eb5335ff58688fd4652a40c791088a94d532
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Sat Mar 29 09:28:30 2014 +0000
HPPA: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For HP PA-RISC targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
(hppa_hpux_iterate_over_regset_sections): New.
(hppa_hpux_init_abi): Adjust gdbarch initialization.
* hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
(hppa_linux_iterate_over_regset_sections): New.
(hppa_linux_init_abi): Adjust.
* hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
(hppanbsd_iterate_over_regset_sections): New.
(hppanbsd_init_abi): Adjust.
* hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
(hppaobsd_iterate_over_regset_sections): New.
(hppaobsd_init_abi): Adjust.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=66afae4f0ae73fee2ee19ced16110e184e6c0076
commit 66afae4f0ae73fee2ee19ced16110e184e6c0076
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Nov 29 16:31:01 2013 +0000
FRV: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For FR-V GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
(frv_linux_iterate_over_regset_sections): New.
(frv_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ed09174e35d31547d3b89f366890022fd1bee1ac
commit ed09174e35d31547d3b89f366890022fd1bee1ac
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Sat Mar 29 09:12:57 2014 +0000
ARM: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For ARM BSD targets, don't define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
(armbsd_iterate_over_regset_sections): New prototype.
* armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
(armbsd_iterate_over_regset_sections): New.
* armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dff2166ef98100e28ae22146bcdcd1a0aec9f952
commit dff2166ef98100e28ae22146bcdcd1a0aec9f952
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Mon Mar 3 13:54:50 2014 +0000
ALPHA: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
Don't define the 'regset_from_core_section' method, but the iterator
method instead. Do this for GNU/Linux- as well as
Net/OpenBSD-targets. In the case of GNU/Linux this should enable
non-native use of the 'generate-core-file' command.
gdb/ChangeLog:
* alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
(alpha_linux_iterate_over_regset_sections): New.
(alpha_linux_init_abi): Adjust gdbarch initialization.
* alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
prototype.
(alphanbsd_iterate_over_regset_sections): New prototype.
* alphafbsd-tdep.c (alphafbsd_init_abi): Add comment for missing
fbsd_init_abi invocation.
* alphanbsd-tdep.c (alphanbsd_supply_gregset): Move below
alphanbsd_aout_supply_gregset. Invoke the latter for the
appropriate size.
(alphanbsd_aout_gregset): Remove.
(alphanbsd_regset_from_core_section): Remove.
(alphanbsd_iterate_over_regset_sections): New.
(alphanbsd_init_abi): Adjust gdbarch initialization.
* alphaobsd-tdep.c (alphaobsd_init_abi): Likewise.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4108500a2ac989e770d91f076be4c9434e25afa8
commit 4108500a2ac989e770d91f076be4c9434e25afa8
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Mon Apr 28 07:56:51 2014 +0000
AARCH64: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
Don't define the 'regset_from_core_section' method, but the iterator
method instead. This slightly reduces the code and enables non-native
use of the 'generate-core-file' command.
Also, when all instances of 'regset_from_core_section' are replaced,
it can be dropped from the gdbarch interface.
gdb/ChangeLog:
* aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
Remove.
(aarch64_linux_iterate_over_regset_sections): New.
(aarch64_linux_init_abi): Adjust gdbarch initialization.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a904c024b0760911288e865c62d91578fd887e3b
commit a904c024b0760911288e865c62d91578fd887e3b
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Tue Dec 3 11:35:35 2013 +0000
Add multi-arch capable 'fbsd_make_corefile_notes' variant
This creates a new version of the FreeBSD core file note generation
logic in the new target-dependent file "fbsd-tdep.c". The new version
is mostly copied from "fbsd-nat.c", but uses the iterator instead of
regset_from_core_section and defines fbsd_make_corefile_notes as a
gdbarch method instead of a target method.
Consecutive architecture-dependent changes exploit the new version,
migrating away from the target method. When all FreeBSD targets are
changed, the target method can go away.
gdb/ChangeLog:
* fbsd-tdep.c: New file.
* fbsd-tdep.h: New file.
* Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
(HFILES_NO_SRCDIR): Add fbsd-tdep.h.
(ALLDEPFILES): Add fbsd-tdep.c.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8f0435f75e3c9676d2e177ce055fed3155fd9476
commit 8f0435f75e3c9676d2e177ce055fed3155fd9476
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Fri Sep 12 08:42:48 2014 +0000
Add 'regset' parameter to 'iterate_over_regset_sections_cb'
This adds the 'regset' parameter to the iterator callback.
Consequently the 'regset_from_core_section' method is dropped for all
targets that provide the iterator method.
This change prepares for replacing regset_from_core_section
everywhere, thereby eliminating one gdbarch interface. Since the
iterator is usually no more complex than regset_from_core_section
alone, targets that previously didn't define core_regset_sections will
then gain multi-arch capable core file generation support without
increased complexity.
gdb/ChangeLog:
* gdbarch.sh (iterate_over_regset_sections_cb): Add regset
parameter.
* gdbarch.h: Regenerate.
* corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
iterator.
(get_core_register_section): Add parameter 'regset' and use it, if
set. Add parameter 'min_size' and verify the bfd section size
against it.
(get_core_registers_cb): Add parameter 'regset' and pass it to
get_core_register section. For the "standard" register sections
".reg" and ".reg2", set an appropriate default for human_name.
(get_core_registers): Don't abort when the gdbarch has an iterator
but no regset_from_core_section. Add NULL/0 for parameters
'regset'/'min_size' in calls to get_core_register_section.
* linux-tdep.c (linux_collect_regset_section_cb): Add parameter
'regset' and use it instead of calling the
regset_from_core_section gdbarch method.
* i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
* i386-tdep.c (i386_supply_xstateregset)
(i386_collect_xstateregset, i386_xstateregset): Moved to
i386-linux-tdep.c.
(i386_regset_from_core_section): Drop handling for .reg-xfp and
.reg-xstate.
(i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
core file support only if the regset iterator hasn't been set.
* i386-linux-tdep.c (i386_linux_supply_xstateregset)
(i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
Moved from i386-tdep.c and renamed to *_linux*.
(i386_linux_iterate_over_regset_sections): Add regset parameter to
each callback invocation. Allow any .reg-xstate size when reading
from a core file.
* amd64-tdep.c (amd64_supply_xstateregset)
(amd64_collect_xstateregset, amd64_xstateregset): Moved to
amd64-linux-tdep.c.
(amd64_regset_from_core_section): Remove.
(amd64_init_abi): Set new tdep field 'fpregset'. No longer
install an amd64-specific regset_from_core_section gdbarch method.
* amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
(amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
Moved from amd64-tdep.c and renamed to *_linux*.
(amd64_linux_iterate_over_regset_sections): Add regset parameter
to each callback invocation. Allow any .reg-xstate size when
reading from a core file.
* arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
(arm_linux_iterate_over_regset_sections): Add regset parameter to
each callback invocation.
(arm_linux_init_abi): No longer set the regset_from_core_section
gdbarch method.
* ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
(ppc_linux_iterate_over_regset_sections): Add regset parameter to
each callback invocation.
(ppc_linux_init_abi): No longer set the regset_from_core_section
gdbarch method.
* s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
(s390_regset_from_core_section): Remove.
(s390_iterate_over_regset_sections): Add regset parameter to each
callback invocation.
(s390_gdbarch_init): No longer set the regset_from_core_section
gdbarch method. Drop initialization of deleted tdep fields.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5aa82d050d61784823767fe3c982b6862fa47391
commit 5aa82d050d61784823767fe3c982b6862fa47391
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Thu Sep 4 15:26:43 2014 +0000
Replace 'core_regset_sections' by iterator method
The core_regset_sections list in gdbarch (needed for multi-arch
capable core file generation support) is replaced by an iterator
method. Overall, this reduces the code a bit, and it allows for more
flexibility.
gdb/ChangeLog:
* amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
(amd64_linux_iterate_over_regset_sections): New.
(amd64_linux_init_abi_common): Don't install the regset section
list, but the new iterator in gdbarch.
* arm-linux-tdep.c (arm_linux_fpa_regset_sections)
(arm_linux_vfp_regset_sections): Remove. Move combined logic...
(arm_linux_iterate_over_regset_sections): ...here. New function.
(arm_linux_init_abi): Set iterator instead of section list.
* corelow.c (get_core_registers_cb): New function, logic moved
from...
(get_core_registers): ...loop body here. Use new iterator method
instead of walking through the regset section list.
* gdbarch.sh: Remove 'core_regset_sections'. New method
'iterate_over_regset_sections'. New typedef
'iterate_over_regset_sections_cb'.
* gdbarch.c: Regenerate.
* gdbarch.h: Likewise.
* i386-linux-tdep.c (i386_linux_regset_sections)
(i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
Remove.
(i386_linux_iterate_over_regset_sections): New.
(i386_linux_init_abi): Don't choose a regset section list, but
install new iterator in gdbarch.
* linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
(linux_collect_regset_section_cb): New function, logic moved
from...
(linux_collect_thread_registers): ...loop body here. Use iterator
method instead of walking through list.
(linux_make_corefile_notes_1): Check for presence of iterator
method instead of regset section list.
* ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
(ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
(ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
(ppc64_linux_fp_regset_sections): Remove. Move combined logic...
(ppc_linux_iterate_over_regset_sections): ...here. New function.
(ppc_linux_init_abi): Don't choose from above regset section
lists, but install new iterator in gdbarch.
* regset.h (struct core_regset_section): Remove.
* s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
have_linux_v1, have_linux_v2, and have_tdb.
(s390_linux32_regset_sections, s390_linux32v1_regset_sections)
(s390_linux32v2_regset_sections, s390_linux64_regset_sections)
(s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
(s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
(s390x_linux64v2_regset_sections): Remove. Move combined logic...
(s390_iterate_over_regset_sections): ...here. New function. Use
new tdep fields.
(s390_gdbarch_init): Set new tdep fields. Don't choose from above
regset section lists, but install new iterator.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 356 ++++++++++++++++++++++++++++++++++++++++++++++
gdb/Makefile.in | 4 +-
gdb/aarch64-linux-tdep.c | 26 ++--
gdb/alpha-linux-tdep.c | 24 ++--
gdb/alphabsd-tdep.h | 10 +-
gdb/alphafbsd-tdep.c | 5 +
gdb/alphanbsd-tdep.c | 87 +++++-------
gdb/alphaobsd-tdep.c | 4 +-
gdb/amd64-linux-tdep.c | 57 ++++++--
gdb/amd64-tdep.c | 51 +-------
gdb/amd64-tdep.h | 2 +
gdb/amd64fbsd-nat.c | 1 -
gdb/amd64fbsd-tdep.c | 4 +
gdb/amd64obsd-tdep.c | 19 ++--
gdb/arm-linux-tdep.c | 55 ++-----
gdb/arm-tdep.h | 8 +-
gdb/armbsd-tdep.c | 20 +--
gdb/armobsd-tdep.c | 4 +-
gdb/configure.tgt | 8 +-
gdb/corelow.c | 86 +++++++-----
gdb/fbsd-nat.c | 76 ----------
gdb/fbsd-nat.h | 6 -
gdb/fbsd-tdep.c | 137 ++++++++++++++++++
gdb/fbsd-tdep.h | 25 ++++
gdb/frv-linux-tdep.c | 25 ++--
gdb/gdbarch.c | 54 +++-----
gdb/gdbarch.h | 25 ++--
gdb/gdbarch.sh | 17 ++-
gdb/hppa-hpux-tdep.c | 19 ++--
gdb/hppa-linux-tdep.c | 22 ++--
gdb/hppanbsd-tdep.c | 20 ++--
gdb/hppaobsd-tdep.c | 24 ++--
gdb/i386-cygwin-tdep.c | 18 +--
gdb/i386-linux-tdep.c | 86 +++++++----
gdb/i386-tdep.c | 60 ++------
gdb/i386-tdep.h | 16 ++-
gdb/i386fbsd-nat.c | 1 -
gdb/i386fbsd-tdep.c | 4 +
gdb/i386obsd-tdep.c | 20 ++--
gdb/ia64-linux-tdep.c | 24 ++--
gdb/linux-nat.c | 57 --------
gdb/linux-tdep.c | 140 ++++++++++--------
gdb/linux-tdep.h | 3 -
gdb/m32r-linux-tdep.c | 19 ++--
gdb/m68kbsd-tdep.c | 24 ++--
gdb/m68klinux-tdep.c | 27 ++---
gdb/m88k-tdep.c | 20 ++--
gdb/mips-linux-tdep.c | 47 +++----
gdb/mips64obsd-tdep.c | 20 ++--
gdb/mipsnbsd-tdep.c | 28 ++--
gdb/mn10300-linux-tdep.c | 23 ++--
gdb/nios2-linux-tdep.c | 24 ++--
gdb/ppc-linux-tdep.c | 119 ++++------------
gdb/ppcfbsd-nat.c | 1 -
gdb/ppcfbsd-tdep.c | 35 +++---
gdb/ppcnbsd-tdep.c | 24 ++--
gdb/ppcobsd-tdep.c | 20 ++--
gdb/procfs.c | 2 +-
gdb/regset.h | 8 -
gdb/rs6000-aix-tdep.c | 27 ++---
gdb/s390-linux-tdep.c | 192 +++++--------------------
gdb/score-tdep.c | 25 ++--
gdb/sh-linux-tdep.c | 4 +
gdb/sh-tdep.c | 21 ++--
gdb/sh-tdep.h | 2 +
gdb/shnbsd-tdep.c | 1 +
gdb/sparc-tdep.c | 24 ++--
gdb/sparc64fbsd-nat.c | 1 -
gdb/sparc64fbsd-tdep.c | 4 +
gdb/tilegx-linux-tdep.c | 22 ++--
gdb/vax-tdep.c | 20 ++--
gdb/xtensa-tdep.c | 27 ++--
72 files changed, 1302 insertions(+), 1219 deletions(-)
create mode 100644 gdb/fbsd-tdep.c
create mode 100644 gdb/fbsd-tdep.h
hooks/post-receive
--
gdb and binutils