summaryrefslogtreecommitdiff
path: root/gdb/solib-target.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-05-04 06:19:31 +0000
committerDoug Evans <dje@google.com>2013-05-04 06:19:31 +0000
commit3efe260e9d1d0ce992494820b3a6d180a998917e (patch)
tree84b9d1d82509c8c539bebf0ef0ddf9a559b4789b /gdb/solib-target.c
parent029d1bad2ac0ff638ecab4b1bb8f737bdb44b417 (diff)
downloadgdb-3efe260e9d1d0ce992494820b3a6d180a998917e.tar.gz
* objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
of bfd_count_sections. * solib-target.c (solib_target_relocate_section_addresses): Ditto. * symfile.c (default_symfile_offsets): Ditto. (syms_from_objfile_1): Ditto. Make dummy addrs list an array of one entry, not bfd_count_sections entries.
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r--gdb/solib-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 0ad29ba3235..483e5f9f022 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -339,7 +339,7 @@ solib_target_relocate_section_addresses (struct so_list *so,
it any earlier, since we need to open the file first. */
if (so->lm_info->offsets == NULL)
{
- int num_sections = bfd_count_sections (so->abfd);
+ int num_sections = gdb_bfd_count_sections (so->abfd);
so->lm_info->offsets = xzalloc (SIZEOF_N_SECTION_OFFSETS (num_sections));