diff options
author | Paul Koning <paul_koning@dell.com> | 2015-10-15 16:25:49 -0400 |
---|---|---|
committer | Paul Koning <paul_koning@dell.com> | 2015-10-15 16:25:49 -0400 |
commit | f218947cb8901642879d499fc63dd2bd32b5cb03 (patch) | |
tree | aa1aa8d96fc45eafe96beb6b887c16ed5bba480e /mkdep | |
parent | 1f92c67a165696fb15f36fcbee0b9f2d2b3a1b1e (diff) | |
download | gdb-f218947cb8901642879d499fc63dd2bd32b5cb03.zip gdb-f218947cb8901642879d499fc63dd2bd32b5cb03.tar.gz gdb-f218947cb8901642879d499fc63dd2bd32b5cb03.tar.bz2 |
convert corelow to to_xclose
This converts corelow to be a to_xclose target. It moves all the
corelow-related globals into a new subclass of target_ops and arranges
for core_open to push an instance of this.
This is preparatory work for multi-target. After this patch, corelow
doesn't rely on global state and multiple instances can readily be
instantiated.
2014-07-29 Tom Tromey <tromey@redhat.com>
* corelow.c (struct core_target_ops_with_data): New struct.
(core_vec, core_gdbarch, core_data): Remove. Now fields of
core_target_ops_with_data.
(sniff_core_bfd): Add core_gdbarch parameter.
(get_core_target_ops): New function.
(core_xclose): Rename from core_close. Update for
core_target_ops_with_data. Free the target.
(core_close_cleanup): Rename parameter. Update.
(core_open): Use TARGET_NEW. Update.
(get_core_register_section, get_core_registers, core_files_info)
(core_xfer_partial, core_read_description, core_pid_to_str): Use
get_core_target_ops. Update.
(init_core_ops): Set to_xclose, not to_close.
* target.c (allocate_target): New function.
* target.h (allocate_target): Declare.
(TARGET_NEW): New macro.
Diffstat (limited to 'mkdep')
0 files changed, 0 insertions, 0 deletions