]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
remove to_data
authorPaul Koning <paul_koning@dell.com>
Fri, 16 Oct 2015 18:06:43 +0000 (14:06 -0400)
committerPaul Koning <paul_koning@dell.com>
Fri, 16 Oct 2015 18:06:43 +0000 (14:06 -0400)
commit22855f3cab8948f5b4a0fdda9845ce47c8bafbc9
tree64f35f0838cc9cfc268c9ec53fde4d4181684241
parentf218947cb8901642879d499fc63dd2bd32b5cb03
remove to_data

There's no reason to have to_data.

On the one hand, a to_xclose target can readily subclass target_ops.
This is simple and clean.

On the other hand, a to_close target can't really use to_data in the
multi-target future, because such a target is inherently not
multi-capable.

So, this patch removes the field and fixes up its sole user.

2014-07-29  Tom Tromey  <tromey@redhat.com>

* bfd-target.c (struct target_bfd_ops): Rename from
target_bfd_data.  Add "base" field.
(target_bfd_xfer_partial, target_bfd_get_section_table)
(target_bfd_xclose, target_bfd_reopen): Update.
* target.h (struct target_ops) <to_data>: Remove.
gdb/bfd-target.c
gdb/target.h