diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-09 16:00:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-09 16:00:21 +0000 |
commit | ae4221d7c27786eb790a96d65a78cb0fb7d79fcf (patch) | |
tree | 554b68ba1007fa808299ebdcebbba47dc4eb5faf /bfd/bfd.c | |
parent | 5789ecea4c53e1fa61db1211f4e3f132bbd57788 (diff) | |
download | gdb-ae4221d7c27786eb790a96d65a78cb0fb7d79fcf.zip gdb-ae4221d7c27786eb790a96d65a78cb0fb7d79fcf.tar.gz gdb-ae4221d7c27786eb790a96d65a78cb0fb7d79fcf.tar.bz2 |
2001-08-09 H.J. Lu <hjl@gnu.org>
* bfd-in.h (bfd_sprintf_vma): New prototype.
(bfd_fprintf_vma): Likewise.
(bfd_elf_sprintf_vma): Likewise.
(bfd_elf_fprintf_vma): Likewise.
(bfd_printf_vma): New. Defined with bfd_fprintf_vma.
* bfd-in2.h: Regenerated.
* bfd.c (bfd_sprintf_vma): New. Defined.
(bfd_fprintf_vma): Likewise.
* elf.c (bfd_elf_sprintf_vma): New. Defined.
(bfd_elf_fprintf_vma): Likewise.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1262,3 +1262,25 @@ bfd_record_phdr (abfd, type, flags_valid, flags, at_valid, at, return true; } + +void +bfd_sprintf_vma (abfd, buf, value) + bfd *abfd; + char *buf; + bfd_vma value; +{ + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) + return bfd_elf_sprintf_vma (abfd, buf, value); + sprintf_vma (buf, value); +} + +void +bfd_fprintf_vma (abfd, stream, value) + bfd *abfd; + PTR stream; + bfd_vma value; +{ + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) + return bfd_elf_fprintf_vma (abfd, stream, value); + fprintf_vma ((FILE *) stream, value); +} |