diff options
author | Doug Evans <dje@google.com> | 2013-05-04 06:19:31 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-04 06:19:31 +0000 |
commit | d445b2f6a4492b74f6fa5cb21d8b95ccf4f8edd9 (patch) | |
tree | 466bffcc9e90a1ae971a4b5ef803efc7df7c5009 /gdb/objfiles.c | |
parent | b3ce41ea47cf933ed1b0aea81dda9526ac14403a (diff) | |
download | gdb-d445b2f6a4492b74f6fa5cb21d8b95ccf4f8edd9.zip gdb-d445b2f6a4492b74f6fa5cb21d8b95ccf4f8edd9.tar.gz gdb-d445b2f6a4492b74f6fa5cb21d8b95ccf4f8edd9.tar.bz2 |
* 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/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 93b7ba7..2e13421 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -880,7 +880,7 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets) addr_info_make_relative (objfile_addrs, debug_objfile->obfd); gdb_assert (debug_objfile->num_sections - == bfd_count_sections (debug_objfile->obfd)); + == gdb_bfd_count_sections (debug_objfile->obfd)); new_debug_offsets = xmalloc (SIZEOF_N_SECTION_OFFSETS (debug_objfile->num_sections)); make_cleanup (xfree, new_debug_offsets); |