aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/xcoffexec.c')
-rw-r--r--gdb/xcoffexec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c
index db658e0..7a57f9c 100644
--- a/gdb/xcoffexec.c
+++ b/gdb/xcoffexec.c
@@ -103,10 +103,9 @@ exec_close(quitting)
vmap = 0;
- if (exec_bfd) {
- bfd_close (exec_bfd);
- exec_bfd = NULL;
- }
+ /* exec_bfd was already closed (the exec file has a vmap entry). */
+ exec_bfd = NULL;
+
if (exec_ops.to_sections) {
free (exec_ops.to_sections);
exec_ops.to_sections = NULL;