aboutsummaryrefslogtreecommitdiff
path: root/binutils/addr2line.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-01-18 13:14:35 +0000
committerNick Clifton <nickc@redhat.com>2013-01-18 13:14:35 +0000
commita477bfd1c2c42949303ef790038d31f1c08ade41 (patch)
tree2a391fbeefa32966c98491f8b5b8796e0d70de8e /binutils/addr2line.c
parent5965d69d9d91749c1b4fcec941eca57ea52cdfd4 (diff)
downloadgdb-a477bfd1c2c42949303ef790038d31f1c08ade41.zip
gdb-a477bfd1c2c42949303ef790038d31f1c08ade41.tar.gz
gdb-a477bfd1c2c42949303ef790038d31f1c08ade41.tar.bz2
PR binutils/15026
* addr2line.c (translate_addresses): When pretty printing, print unknown function names on the same line as unknown symbol names.
Diffstat (limited to 'binutils/addr2line.c')
-rw-r--r--binutils/addr2line.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/addr2line.c b/binutils/addr2line.c
index 5febaea..b4f604b 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