aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-07-16 20:41:55 +0000
committerDoug Evans <dje@google.com>2013-07-16 20:41:55 +0000
commit2b2848e211ef08d32b8427839b95b472d8fde337 (patch)
tree429ded244dc7c153459707bf12c6ff729ac43b61 /gdb/target.c
parent4229ca0ea6f46cc8b60aa40020f13b1fe212bb85 (diff)
downloadgdb-2b2848e211ef08d32b8427839b95b472d8fde337.zip
gdb-2b2848e211ef08d32b8427839b95b472d8fde337.tar.gz
gdb-2b2848e211ef08d32b8427839b95b472d8fde337.tar.bz2
* target.h (struct target_section): Delete member bfd.
All users updated to use the_bfd_section->owner instead. * exec.c (add_to_section_table): Assert bfd is expected value. Remove initialization of target_section.bfd. (remove_target_sections): Update. (section_table_available_memory): Update. (section_table_xfer_memory_partial): Update. (print_section_info): Update. (exec_set_section_address): Update. * record-full.c (record_full_core_xfer_partial): Update. * solib-svr4.c (svr4_relocate_section_addresses): Update. * solib-target.c (solib_target_relocate_section_addresses): Update. * symfile.c (build_section_addr_info_from_section_table): Update. * target.c (memory_xfer_live_readonly_partial): Update. (memory_xfer_partial_1): Update.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 920f916..3acd6c4 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1396,7 +1396,8 @@ memory_xfer_live_readonly_partial (struct target_ops *ops,
secp = target_section_by_addr (ops, memaddr);
if (secp != NULL
- && (bfd_get_section_flags (secp->bfd, secp->the_bfd_section)
+ && (bfd_get_section_flags (secp->the_bfd_section->owner,
+ secp->the_bfd_section)
& SEC_READONLY))
{
struct target_section *p;
@@ -1475,7 +1476,8 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object,
secp = target_section_by_addr (ops, memaddr);
if (secp != NULL
- && (bfd_get_section_flags (secp->bfd, secp->the_bfd_section)
+ && (bfd_get_section_flags (secp->the_bfd_section->owner,
+ secp->the_bfd_section)
& SEC_READONLY))
{
table = target_get_section_table (ops);