[Bug binutils/17385] New: addr2line returns spurious inlined-by line in pipeline mode

2014-09-12 Thread tgrabiec at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17385

Bug ID: 17385
   Summary: addr2line returns spurious inlined-by line in pipeline
mode
   Product: binutils
   Version: 2.23
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: tgrabiec at gmail dot com

When I provide symbols to addr2line via stdin and I use the following address
sequence (note that the second address is repeated):

$ cat > a
0x3c3d67
0x438b7d
0x438b7d
^D
$ addr2line -Cfpi -e loader.elf < a
void
sched::thread::do_wake_with(waiter::wake()::{lambda()#1},
unsigned int) at /data/tgrabiec/src/osv/include/osv/sched.hh:1119
(discriminator 1)
 (inlined by) void
sched::thread::wake_with_from_mutex(waiter::wake()::{lambda()#1})
at /data/tgrabiec/src/osv/include/osv/sched.hh:1143 (discriminator 1)
 (inlined by) waiter::wake() at
/data/tgrabiec/src/osv/include/osv/wait_record.hh:38 (discriminator 1)
 (inlined by) lockfree::mutex::unlock() at
/data/tgrabiec/src/osv/core/lfmutex.cc:247 (discriminator 1)
pthread_mutex_unlock at /data/tgrabiec/src/osv/libc/pthread.cc:389
 (inlined by) soreceive_generic at
/data/tgrabiec/src/osv/bsd/sys/kern/uipc_socket.cc:1328
pthread_mutex_unlock at /data/tgrabiec/src/osv/libc/pthread.cc:389

$ addr2line -v
GNU addr2line version 2.23.2

Notice how for the first occurrence of 0x438b7d I get:

pthread_mutex_unlock at /data/tgrabiec/src/osv/libc/pthread.cc:389
 (inlined by) soreceive_generic at 

And for the second I get:

pthread_mutex_unlock at /data/tgrabiec/src/osv/libc/pthread.cc:389

The second one is correct.

I can provide you with loader.elf if needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Re: parallel make potential problem in bfd/doc

2014-09-12 Thread Dan Nicolaescu
Alan Modra  writes:

> On Wed, Sep 10, 2014 at 09:19:08AM -0400, Dan Nicolaescu wrote:
>> Rules for updating the texi files look like this:
>
> They look a little different on binutils-gdb.git master.  :)

Thanks!

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils