Move core_bfd to program space
authorTom Tromey <tromey@redhat.com>
Fri, 11 May 2018 18:10:13 +0000 (19:10 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 11 May 2018 18:10:13 +0000 (19:10 +0100)
commite540a5a22319f2ab5661db882639839d1d867542
tree24380a016208800db3cd079d0fcde26ba680ff16
parent633cf2548bcd3dafe297e21a1dd3574240280d48
Move core_bfd to program space

This moves the core_bfd global to be a field of the program space.  It
then replaces core_bfd with a macro to avoid a massive patch -- the
same approach taken for various other program space fields.

This is a basic transformation for multi-target work.

2018-05-11  Tom Tromey  <tromey@redhat.com>
    Pedro Alves  <tromey@redhat.com>

* corefile.c (core_bfd): Remove.
* gdbcore.h (core_bfd): Now a macro.
* progspace.h (struct program_space) <cbfd>: New field.
gdb/ChangeLog
gdb/corefile.c
gdb/gdbcore.h
gdb/progspace.h