summaryrefslogtreecommitdiff
path: root/gdb/record-full.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
commitec97e80c6c4452368230e63d09f05ac98cf7d19d (patch)
treeb6e79c917d89b1692f1f35be34a5b0ed2747fed4 /gdb/record-full.c
parentb28f90623baaf5a5d3d863d5245ec3515fc6323c (diff)
downloadgdb-ec97e80c6c4452368230e63d09f05ac98cf7d19d.tar.gz
* 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/record-full.c')
-rw-r--r--gdb/record-full.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 3a8d32637d2..1c4e68bcd23 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -2219,9 +2219,10 @@ record_full_core_xfer_partial (struct target_ops *ops,
xmalloc
(sizeof (struct record_full_core_buf_entry));
entry->p = p;
- if (!bfd_malloc_and_get_section (p->bfd,
- p->the_bfd_section,
- &entry->buf))
+ if (!bfd_malloc_and_get_section
+ (p->the_bfd_section->owner,
+ p->the_bfd_section,
+ &entry->buf))
{
xfree (entry);
return 0;