]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
[gas] Fix file 0 dir with -gdwarf-5
authorTom de Vries <tdevries@suse.de>
Fri, 26 Nov 2021 08:59:45 +0000 (09:59 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 26 Nov 2021 08:59:45 +0000 (09:59 +0100)
commit4780e5e4933a2497a5aecc4ceabbbb8e82aaf822
tree27bd71b7c86c6e12faa9027fa7ee882e50ce68d2
parentc0f9d658279d4d352672e283df53c1072925fc97
[gas] Fix file 0 dir with -gdwarf-5

In out_dir_and_file_list, if file 0 is copied from file 1, only the filename
is copied, and the dir and md5 fields are left to their default values.

Fix this by adding the copy of the dir and md5 fields.

gas/ChangeLog:

2021-11-26  Tom de Vries  <tdevries@suse.de>

PR 28629
* dwarf2dbg.c (out_dir_and_file_list): When copying file 1 to file 0,
also copy dir and md5 fields.
* testsuite/gas/i386/dwarf5-line-4.d: Adjust expected output.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/i386/dwarf5-line-4.d