Eliminate target_ops::to_xclose
authorPedro Alves <palves@redhat.com>
Wed, 2 May 2018 23:37:09 +0000 (00:37 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 2 May 2018 23:48:05 +0000 (00:48 +0100)
commit3fffc0701a26bc0baa563fdc793cafb3d3f02a93
treed06a731f3dea412b5cf392e43d0baf78d6b5151d
parent6798487f5bc66ab9c34ad81fa28ba25d32a00bd9
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.
gdb/ChangeLog
gdb/bfd-target.c
gdb/target.c
gdb/target.h
This page took 0.024107 seconds and 4 git commands to generate.