* objdump.c (dump_symbols): Fix thinko last change. Improve error
messages.
This commit is contained in:
parent
7710980469
commit
83ef079838
2 changed files with 10 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-10-11 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* objdump.c (dump_symbols): Fix thinko last change. Improve error
|
||||||
|
messages.
|
||||||
|
|
||||||
2004-10-08 Nick Clifton <nickc@redhat.com>
|
2004-10-08 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* nm.c: Add a new switch --special-syms which, if enabled, will
|
* nm.c: Add a new switch --special-syms which, if enabled, will
|
||||||
|
|
|
@ -2280,17 +2280,14 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic)
|
||||||
bfd *cur_bfd;
|
bfd *cur_bfd;
|
||||||
|
|
||||||
if (*current == NULL)
|
if (*current == NULL)
|
||||||
printf (_("no information for the %ld'th symbol"), count);
|
printf (_("no information for symbol number %ld\n"), count);
|
||||||
|
|
||||||
else if ((cur_bfd = bfd_asymbol_bfd (*current)) == NULL)
|
else if ((cur_bfd = bfd_asymbol_bfd (*current)) == NULL)
|
||||||
printf (_("could not determine the type of the %ld'th symbol"),
|
printf (_("could not determine the type of symbol number %ld\n"),
|
||||||
count);
|
count);
|
||||||
|
|
||||||
else if (! dump_special_syms
|
else if (dump_special_syms
|
||||||
&& bfd_is_target_special_symbol (cur_bfd, *current))
|
|| !bfd_is_target_special_symbol (cur_bfd, *current))
|
||||||
continue;
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
const char *name = (*current)->name;
|
const char *name = (*current)->name;
|
||||||
|
|
||||||
|
@ -2311,9 +2308,8 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic)
|
||||||
else
|
else
|
||||||
bfd_print_symbol (cur_bfd, stdout, *current,
|
bfd_print_symbol (cur_bfd, stdout, *current,
|
||||||
bfd_print_symbol_all);
|
bfd_print_symbol_all);
|
||||||
}
|
|
||||||
|
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
}
|
||||||
current++;
|
current++;
|
||||||
}
|
}
|
||||||
printf ("\n\n");
|
printf ("\n\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue