aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-08-04 16:31:00 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-08-04 16:31:00 +0000
commitf7231afc19f5a541680e4e1fbdebe47c6bb9625a (patch)
tree661aa09dc4b4c6d430d9973fe4e4a9375eb73bc1 /bfd/elfcode.h
parent6612555199a45a60bad366e8697bb53d3d128175 (diff)
downloadgdb-f7231afc19f5a541680e4e1fbdebe47c6bb9625a.zip
gdb-f7231afc19f5a541680e4e1fbdebe47c6bb9625a.tar.gz
gdb-f7231afc19f5a541680e4e1fbdebe47c6bb9625a.tar.bz2
2007-08-04 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (xvec_get_elf_backend_data): Add const. * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data. * elfcore.h (elf_core_file_p): Likewise.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index d2f4751..e16f579 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -605,7 +605,7 @@ elf_object_p (bfd *abfd)
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
continue;
- back = (const struct elf_backend_data *) (*target_ptr)->backend_data;
+ back = xvec_get_elf_backend_data (*target_ptr);
if (back->elf_machine_code == i_ehdrp->e_machine
|| (back->elf_machine_alt1 != 0
&& back->elf_machine_alt1 == i_ehdrp->e_machine)
@@ -658,7 +658,7 @@ elf_object_p (bfd *abfd)
!= target->header_byteorder))
continue;
- back = (const struct elf_backend_data *) (*target_ptr)->backend_data;
+ back = xvec_get_elf_backend_data (*target_ptr);
if (back->elf_osabi == i_ehdrp->e_ident[EI_OSABI]
&& (back->elf_machine_code == i_ehdrp->e_machine
|| (back->elf_machine_alt1 != 0