aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-11 08:18:43 +0000
committerAlan Modra <amodra@gmail.com>2004-10-11 08:18:43 +0000
commit83ef0798389cae01c8889ee63221f3a34414e0dd (patch)
tree532e1a5755ed857b5fd6ae2c9e0989a8fceda17c
parent7710980469e6ac66a7f949cee6d025069413485b (diff)
downloadgdb-83ef0798389cae01c8889ee63221f3a34414e0dd.zip
gdb-83ef0798389cae01c8889ee63221f3a34414e0dd.tar.gz
gdb-83ef0798389cae01c8889ee63221f3a34414e0dd.tar.bz2
* objdump.c (dump_symbols): Fix thinko last change. Improve error
messages.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ab1c857..6310a50 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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>
* nm.c: Add a new switch --special-syms which, if enabled, will
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 73af429..3338fc5 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2280,17 +2280,14 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic)
bfd *cur_bfd;
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)
- printf (_("could not determine the type of the %ld'th symbol"),
+ printf (_("could not determine the type of symbol number %ld\n"),
count);
- else if (! dump_special_syms
- && bfd_is_target_special_symbol (cur_bfd, *current))
- continue;
-
- else
+ else if (dump_special_syms
+ || !bfd_is_target_special_symbol (cur_bfd, *current))
{
const char *name = (*current)->name;
@@ -2311,9 +2308,8 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic)
else
bfd_print_symbol (cur_bfd, stdout, *current,
bfd_print_symbol_all);
+ printf ("\n");
}
-
- printf ("\n");
current++;
}
printf ("\n\n");