Add multi-arch capable 'fbsd_make_corefile_notes' variant
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 3 Dec 2013 11:35:35 +0000 (11:35 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 30 Sep 2014 07:14:33 +0000 (09:14 +0200)
commita904c024b0760911288e865c62d91578fd887e3b
tree382b519df903251ba5dc81113b0b3532c9bbb02f
parent8f0435f75e3c9676d2e177ce055fed3155fd9476
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.
gdb/ChangeLog
gdb/Makefile.in
gdb/fbsd-tdep.c [new file with mode: 0644]
gdb/fbsd-tdep.h [new file with mode: 0644]