aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2018-05-11 19:10:13 +0100
committerPedro Alves <palves@redhat.com>2018-05-11 19:10:13 +0100
commite540a5a22319f2ab5661db882639839d1d867542 (patch)
tree24380a016208800db3cd079d0fcde26ba680ff16 /gdb/corefile.c
parentRemove cleanups from mdebugread.c (diff)
downloadbinutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.tar.gz
binutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.tar.bz2
binutils-gdb-e540a5a22319f2ab5661db882639839d1d867542.zip
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/corefile.c')
-rw-r--r--gdb/corefile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 114de836403..e0c75401402 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -49,10 +49,6 @@ static hook_type *exec_file_extra_hooks; /* Array of additional
hooks. */
static int exec_file_hook_count = 0; /* Size of array. */
-/* Binary file diddling handle for the core file. */
-
-bfd *core_bfd = NULL;
-
/* Backward compatability with old way of specifying core files. */