diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-23 23:22:32 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-26 22:50:50 +1030 |
commit | 639601f90d1fda494e1d9c17b7f71d31e3b0a5e3 (patch) | |
tree | 510e2b5e591d397db400a63c06669e8f2ce673a1 /gdb/python/py-xmethods.c | |
parent | aac7ae599a19c80cafb0eba4a52d2500aabcbaeb (diff) | |
download | gdb-639601f90d1fda494e1d9c17b7f71d31e3b0a5e3.zip gdb-639601f90d1fda494e1d9c17b7f71d31e3b0a5e3.tar.gz gdb-639601f90d1fda494e1d9c17b7f71d31e3b0a5e3.tar.bz2 |
bfd/dwarf2.c: allow use of DWARF5 directory entry 0
I think the test for table->files[file].dir being non-zero is wrong
for DWARF5 where index zero is allowed and is the current directory of
the compilation. Most times this will be covered by the use of
table->comp_dir (from DW_AT_comp_dir) in concat_filename but the point
of putting the current dir in .debug_line was so the section could
stand alone without .debug_info.
Also, there is no need to check for table->dirs non-NULL, the
table->num_dirs test is sufficient.
* dwarf2.c (concat_filename): Correct and simplify tests of
directory index.
Diffstat (limited to 'gdb/python/py-xmethods.c')
0 files changed, 0 insertions, 0 deletions