diff options
author | Dave Korn <dave.korn@artimi.com> | 2009-05-21 12:52:37 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2009-05-21 12:52:37 +0000 |
commit | ebf12fbedc251319fa94bf3dab35992f01f6a8b3 (patch) | |
tree | 7b66fdf20fee14385dc1dd97ded3ceff4838dd3d /bfd/coffgen.c | |
parent | 76bee0cceba09331d2f7acf1c259767d73597c3f (diff) | |
download | gdb-ebf12fbedc251319fa94bf3dab35992f01f6a8b3.zip gdb-ebf12fbedc251319fa94bf3dab35992f01f6a8b3.tar.gz gdb-ebf12fbedc251319fa94bf3dab35992f01f6a8b3.tar.bz2 |
* coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
fprintf_vma directly.
* peXXigen.c (pe_print_edata): Likewise.
(pe_print_pdata): Likewise.
(_bfd_XX_print_ce_compressed_pdata): Likewise.
(_bfd_XX_print_private_bfd_data_common): Likewise.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 8781557..a52f75a7 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -1959,16 +1959,7 @@ coff_print_symbol (bfd *abfd, combined->u.syment.n_type, combined->u.syment.n_sclass, combined->u.syment.n_numaux); -#ifdef BFD64 - /* fprintf_vma() on a 64-bit enabled host will always print a 64-bit - value, but really we want to display the address in the target's - address size. Since we do not have a field in the bfd structure - to tell us this, we take a guess, based on the target's name. */ - if (strstr (bfd_get_target (abfd), "64") == NULL) - fprintf (file, "%08lx", (unsigned long) (val & 0xffffffff)); - else -#endif - fprintf_vma (file, val); + bfd_fprintf_vma (abfd, file, val); fprintf (file, " %s", symbol->name); for (aux = 0; aux < combined->u.syment.n_numaux; aux++) @@ -2051,7 +2042,7 @@ coff_print_symbol (bfd *abfd, while (l->line_number) { fprintf (file, "\n%4d : ", l->line_number); - fprintf_vma (file, l->u.offset + symbol->section->vma); + bfd_fprintf_vma (abfd, file, l->u.offset + symbol->section->vma); l++; } } |