diff options
author | Tom Tromey <tromey@redhat.com> | 2018-05-11 19:10:13 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-05-11 19:10:13 +0100 |
commit | e540a5a22319f2ab5661db882639839d1d867542 (patch) | |
tree | 24380a016208800db3cd079d0fcde26ba680ff16 /gdb/gdbcore.h | |
parent | 633cf2548bcd3dafe297e21a1dd3574240280d48 (diff) | |
download | fsf-binutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.zip fsf-binutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.tar.gz fsf-binutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r-- | gdb/gdbcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h index 401c213..d06ccc3 100644 --- a/gdb/gdbcore.h +++ b/gdb/gdbcore.h @@ -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. */ |