Re-introduce '_start' labels and add alignment in dw2-dir-file-name test case.
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 22 Jan 2014 15:33:00 +0000 (15:33 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 22 Jan 2014 16:02:13 +0000 (17:02 +0100)
commit20fa339009918ded4110124744bf97c12d3d77f5
tree939a38cba8b723b1d909d309f18a52c3dbe9f697
parent784667142320ce3cbd8c4542c147451e43fb30d4
Re-introduce '_start' labels and add alignment in dw2-dir-file-name test case.

On ppc64-linux a function symbol does not point to code, but to the
function descriptor.  Thus the previous change for this test case
broke it:

      https://sourceware.org/ml/gdb-patches/2014-01/msg00275.html

This patch reverts to the original method, re-introducing '_start'
symbols.  In addition, it adds sufficient alignment before the label,
such that the label never points into an alignment gap.

gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-dir-file-name.c (FUNC): Insert alignment and
define "*_start" label.  Make "name" static.
* gdb.dwarf2/dw2-dir-file-name.exp: Replace references to
${name} by references to ${name}_start.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp