]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
move core_bfd to program space
authorPaul Koning <paul_koning@dell.com>
Tue, 13 Oct 2015 18:53:43 +0000 (14:53 -0400)
committerPaul Koning <paul_koning@dell.com>
Tue, 13 Oct 2015 18:53:43 +0000 (14:53 -0400)
commit41f0b53b94eb41ba14a5439b965d516c449d6d64
tree225079520a17668fb7fb436aa0de2326f12d6b0a
parentc5bcd27856f388ae4935b525b1016e812803ddf5
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 patch is a basic transformation for eventual multi-target work.

2014-07-29  Tom Tromey  <tromey@redhat.com>

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