From a477bfd1c2c42949303ef790038d31f1c08ade41 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 18 Jan 2013 13:14:35 +0000 Subject: [PATCH] PR binutils/15026 * addr2line.c (translate_addresses): When pretty printing, print unknown function names on the same line as unknown symbol names. --- binutils/ChangeLog | 6 ++++++ binutils/addr2line.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d5f6e5de0dc..46fb131d192 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2013-01-18 Nick Clifton + + PR binutils/15026 + * addr2line.c (translate_addresses): When pretty printing, print + unknown function names on the same line as unknown symbol names. + 2013-01-17 Nickolai Zeldovich * objdump.c (dump_target_specific): Fix NULL pointer test. diff --git a/binutils/addr2line.c b/binutils/addr2line.c index 5febaeae629..b4f604b4b92 100644 --- a/binutils/addr2line.c +++ b/binutils/addr2line.c @@ -249,7 +249,12 @@ translate_addresses (bfd *abfd, asection *section) if (! found) { if (with_functions) - printf ("??\n"); + { + if (pretty_print) + printf ("?? "); + else + printf ("??\n"); + } printf ("??:0\n"); } else -- 2.30.2