tile: fix DWARF bug in clone() for created thread upstream/2.16.90
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 14 Dec 2012 15:46:54 +0000 (10:46 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 21 Dec 2012 20:29:55 +0000 (15:29 -0500)
commit2bc2d8e82350d451426c6b4fe5ab116f9fc3c205
treeca960bd725d81ef222439b5ef1e0c83db66153dc
parent147d03b01c9a8b17530a36b43d3ee29b7b14ebd0
tile: fix DWARF bug in clone() for created thread

Previously, we would see a bad frame in the gdb backtrace output, e.g.:

  (gdb) bt
  #0  foo () at foo.c:5
  #1  0x000000aaaab68ee8 in start_thread () from /lib/libpthread.so.0
  #2  0x000000aaaad01c88 in clone () from /lib/libc.so.6
  #3  0x0000000000000000 in ?? ()

With this change the bogus frame #3 is gone and we have the
same output as x86 does for the same program.
ports/ChangeLog.tile
ports/sysdeps/unix/sysv/linux/tile/nptl/clone.S