[gdb/testsuite] Regenerate dw2-restrict.S
authorTom de Vries <tdevries@suse.de>
Tue, 25 Jun 2019 14:42:46 +0000 (16:42 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 25 Jun 2019 14:42:46 +0000 (16:42 +0200)
commit5c2c8c694de18370ac6161a21217627ddadeafc7
tree9ec62d5975e750da8585fc67200dd7da2edbd906
parentc2fc64f54ef82ccd2fedc9078c539ad273e83a0b
[gdb/testsuite] Regenerate dw2-restrict.S

When running gdb.dwarf2/dw2-restrict.exp with board cc-with-dwz, we run into:
...
dwz: dw2-restrict: DW_AT_stmt_list not DW_FORM_sec_offset or DW_FORM_data4
...

The problem is that the DW_AT_stmt_list is encoded using DW_FORM_addr, while
DW_FORM_sec_offset or DW_FORM_data4 would be appropriate.  The test-case uses
a dw2-restrict.S which was generated using clang 2.9, which contained a bug
( https://bugs.llvm.org/show_bug.cgi?id=9995 ) causing this problem.

Fix this by regenerating using clang 5.0.1.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-06-25  Tom de Vries  <tdevries@suse.de>

PR testsuite/24727
* gdb.dwarf2/dw2-restrict.S: Regenerate using clang 5.0.1.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-restrict.S