From c161de74a52740a8a981a244974b6e0c72d62298 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 18 Mar 1993 20:12:08 +0000 Subject: [PATCH] * xcoffexec.c (exec_close): Don't close exec_bfd twice. --- gdb/ChangeLog | 2 ++ gdb/xcoffexec.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b579080..8b73e68 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com) + * xcoffexec.c (exec_close): Don't close exec_bfd twice. + * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive. Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com) 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; -- 2.7.4