mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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.
This commit is contained in:
@@ -133,7 +133,7 @@ extern void specify_exec_file_hook (void (*hook) (const char *filename));
|
||||
|
||||
/* Binary File Diddler for the core file. */
|
||||
|
||||
extern bfd *core_bfd;
|
||||
#define core_bfd (current_program_space->cbfd)
|
||||
|
||||
/* corelow.c target. It is never NULL after GDB initialization. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user