aboutsummaryrefslogtreecommitdiff
path: root/gdb/bfd-target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-05-03 00:37:09 +0100
committerPedro Alves <palves@redhat.com>2018-05-03 00:48:05 +0100
commit3fffc0701a26bc0baa563fdc793cafb3d3f02a93 (patch)
treed06a731f3dea412b5cf392e43d0baf78d6b5151d /gdb/bfd-target.c
parent6798487f5bc66ab9c34ad81fa28ba25d32a00bd9 (diff)
downloadgdb-3fffc0701a26bc0baa563fdc793cafb3d3f02a93.zip
gdb-3fffc0701a26bc0baa563fdc793cafb3d3f02a93.tar.gz
gdb-3fffc0701a26bc0baa563fdc793cafb3d3f02a93.tar.bz2
Eliminate target_ops::to_xclose
In the multi-target branch, I found no need for the target_close vs target_xclose distinction. Heap-allocated targets simply delete themselves in their target_close implementation, while singleton/static targets don't. The target_ops C++ification patches will add more commentary around target_ops's destructor, but there's no destructor yet... gdb/ChangeLog: 2018-05-02 Pedro Alves <palves@redhat.com> * bfd-target.c (target_bfd_xclose): Rename to ... (target_bfd_close): ... this. (target_bfd_reopen): Adjust. * target.c (target_close): Remove references to to_xclose. * target.h (target_ops::to_xclose): Delete. (target_ops::to_close): Update comments.
Diffstat (limited to 'gdb/bfd-target.c')
-rw-r--r--gdb/bfd-target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c
index f7928ee..99b49aa 100644
--- a/gdb/bfd-target.c
+++ b/gdb/bfd-target.c
@@ -68,7 +68,7 @@ target_bfd_get_section_table (struct target_ops *ops)
}
static void
-target_bfd_xclose (struct target_ops *t)
+target_bfd_close (struct target_ops *t)
{
struct target_bfd_data *data = (struct target_bfd_data *) t->to_data;
@@ -95,7 +95,7 @@ target_bfd_reopen (struct bfd *abfd)
t->to_doc = _("You should never see this");
t->to_get_section_table = target_bfd_get_section_table;
t->to_xfer_partial = target_bfd_xfer_partial;
- t->to_xclose = target_bfd_xclose;
+ t->to_close = target_bfd_close;
t->to_data = data;
t->to_magic = OPS_MAGIC;