aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-15 11:47:47 +0000
committerNick Clifton <nickc@redhat.com>2005-04-15 11:47:47 +0000
commit745c12f87d5bae02a09d44b0bf0374b712d49022 (patch)
tree0b06b33d23386ce55b3e1d7dd7b032c1f8fb7904 /bfd/coffgen.c
parent8fe53b44b26c678f71cb6363c2ede330979e62c9 (diff)
downloadgdb-745c12f87d5bae02a09d44b0bf0374b712d49022.zip
gdb-745c12f87d5bae02a09d44b0bf0374b712d49022.tar.gz
gdb-745c12f87d5bae02a09d44b0bf0374b712d49022.tar.bz2
Use fprintf_vma to print vma values.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index d303bec..b60a96f 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1895,28 +1895,14 @@ coff_print_symbol (bfd *abfd,
else
val = combined->u.syment.n_value - (unsigned long) root;
-#ifndef XCOFF64
- fprintf (file,
- "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d) 0x%08lx %s",
+ fprintf (file, "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d)",
combined->u.syment.n_scnum,
combined->u.syment.n_flags,
combined->u.syment.n_type,
combined->u.syment.n_sclass,
- combined->u.syment.n_numaux,
- (unsigned long) val,
- symbol->name);
-#else
- /* Print out the wide, 64 bit, symbol value. */
- fprintf (file,
- "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d) 0x%016llx %s",
- combined->u.syment.n_scnum,
- combined->u.syment.n_flags,
- combined->u.syment.n_type,
- combined->u.syment.n_sclass,
- combined->u.syment.n_numaux,
- val,
- symbol->name);
-#endif
+ combined->u.syment.n_numaux);
+ fprintf_vma (file, val);
+ fprintf (file, " %s", symbol->name);
for (aux = 0; aux < combined->u.syment.n_numaux; aux++)
{
@@ -1995,10 +1981,8 @@ coff_print_symbol (bfd *abfd,
l++;
while (l->line_number)
{
- fprintf (file, "\n%4d : 0x%lx",
- l->line_number,
- ((unsigned long)
- (l->u.offset + symbol->section->vma)));
+ fprintf (file, "\n%4d : ", l->line_number);
+ fprintf_vma (file, l->u.offset + symbol->section->vma);
l++;
}
}