Browse Source
* dwarf2dbg.c (get_directory_table_entry): Ensure that dir[0] contains current working directory. (out_dir_and_file_list): Likewise. * testsuite/gas/elf/dwarf-5-dir0.s: New test source file. * testsuite/gas/elf/dwarf-5-dir0.d: New test driver. * testsuite/gas/elf/elf.exp: Run the new test. * testsuite/gas/elf/dwarf-5-file0.d: Adjust expected output. * testsuite/gas/i386/dwarf5-line-1.d: Likewise. * testsuite/gas/i386/dwarf5-line-2.d: Likewise.users/ARM/efi-aarch64-support-binutils
8 changed files with 91 additions and 18 deletions
@ -0,0 +1,20 @@ |
|||
#as: --gdwarf-5 |
|||
#name: DWARF5 dir[0] |
|||
#readelf: -wl |
|||
|
|||
#... |
|||
The Directory Table \(offset 0x.*, lines 4, columns 1\): |
|||
Entry Name |
|||
0 \(indirect line string, offset: 0x0\): .*/gas/testsuite |
|||
1 \(indirect line string, offset: 0x.*\): ../not-the-build-directory |
|||
2 \(indirect line string, offset: 0x.*\): secondary directory |
|||
3 \(indirect line string, offset: 0x.*\): /tmp |
|||
|
|||
The File Name Table \(offset 0x.*, lines 3, columns 3\): |
|||
Entry Dir MD5 Name |
|||
0 1 0x0 \(indirect line string, offset: 0x.*\): master-source-file.c |
|||
1 2 0x0 \(indirect line string, offset: 0x.*\): secondary source file |
|||
2 3 0x95828e8bc4f7404dbf7526fb7bd0f192 \(indirect line string, offset: 0x.*\): foo.c |
|||
#pass |
|||
|
|||
|
|||
@ -0,0 +1,19 @@ |
|||
.section .debug_info,"",%progbits |
|||
.4byte 0x8a |
|||
.2byte 0x2 |
|||
.4byte .Ldebug_abbrev0 |
|||
.byte 0x4 |
|||
.uleb128 0x1 |
|||
|
|||
.file 0 "../not-the-build-directory/master-source-file.c" |
|||
.line 1 |
|||
.text |
|||
.octa 0x12345678901234567890123456789012 |
|||
|
|||
.file 1 "secondary directory/secondary source file" |
|||
.line 2 |
|||
.word 2 |
|||
|
|||
.file 2 "/tmp" "foo.c" md5 0x95828e8bc4f7404dbf7526fb7bd0f192 |
|||
.line 5 |
|||
.word 6 |
|||
Loading…
Reference in new issue