aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-01-10 15:37:36 +0000
committerPedro Alves <palves@redhat.com>2014-01-10 15:37:36 +0000
commit52d7fb1303dcc15fab68b89cf1dd8d2d719c7bb6 (patch)
tree324b04026de71ff4408414cb19d07f74ac2dcb3c /gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
parenteec2f3ed9f053653ed5d629eb50e08e3ee61e9bd (diff)
downloadgdb-52d7fb1303dcc15fab68b89cf1dd8d2d719c7bb6.zip
gdb-52d7fb1303dcc15fab68b89cf1dd8d2d719c7bb6.tar.gz
gdb-52d7fb1303dcc15fab68b89cf1dd8d2d719c7bb6.tar.bz2
Since upstream gcc has recently increased the function alignment on
S390, the dw2-dir-file-name test case fails in the first gdb_continue_to_breakpoint. Indeed, the breakpoint is now placed into the alignment gap *before* the actual function. This happens because the test case declares the respective "*_start" symbol as a "loose" label before the function definition, and the compiler inserts the alignment between that label and the function itself. The "*_start" symbols were only necessary because FUNC made the function static. The fix makes the functions extern instead, thus making the "*_start" labels unnecessary. testsuite/ 2014-01-10 Andreas Arnez <arnez@linux.vnet.ibm.com> Pedro Alves <palves@redhat.com> * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Remove "*_start" symbol. Make "name" extern. * gdb.dwarf2/dw2-dir-file-name.exp (out_cu, out_line): Replace references to ${name}_start by references to ${name}.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
index 21a4d2a..2b9cc6a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c
@@ -64,8 +64,7 @@ FUNC (compdir_absolute_ldir_absolute_file_absolute_same) \
FUNC (compdir_absolute_ldir_absolute_file_absolute_different)
#define FUNC(name) \
- asm (#name "_start: .globl " #name "_start\n"); \
- static void \
+ void \
name (void) \
{ \
v++; \