This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix build failure in solib-ia64-hpux.c
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 3 Sep 2013 13:00:08 -0400
- Subject: [commit] Fix build failure in solib-ia64-hpux.c
- Authentication-results: sourceware.org; auth=none
Hello,
The field "bfd" no longer exists in struct target_section.
Use the_bfd_section->owner instead.
gdb/ChangeLog:
* solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
Replace sec->bfd by sec->the_bfd_section->owner.
Tested on ia64-hpux. Checked in.
Thanks,
--
Joel
---
gdb/ChangeLog | 5 +++++
gdb/solib-ia64-hpux.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ed2acda..06696d8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-03 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
+ Replace sec->bfd by sec->the_bfd_section->owner.
+
2013-09-03 Yao Qi <yao@codesourcery.com>
* linux-tdep.c (linux_is_uclinux): New function. Code moved
diff --git a/gdb/solib-ia64-hpux.c b/gdb/solib-ia64-hpux.c
index 98fad07..ac3615e 100644
--- a/gdb/solib-ia64-hpux.c
+++ b/gdb/solib-ia64-hpux.c
@@ -336,7 +336,8 @@ ia64_hpux_relocate_section_addresses (struct so_list *so,
bfd, whereas we would have had to open our own if we wanted to do it
while processing the library-load event. */
if (so->lm_info->text_start == 0 && so->lm_info->data_start == 0)
- ia64_hpux_find_start_vma (sec->bfd, &so->lm_info->text_start,
+ ia64_hpux_find_start_vma (sec->the_bfd_section->owner,
+ &so->lm_info->text_start,
&so->lm_info->data_start);
/* Determine the relocation offset based on which segment
--
1.7.0.4