binutils-gdb/gdb/dwarf2
Tom de Vries d3b54e63f4 [gdb/symtab] Fix duplicate CUs in create_cus_from_debug_names_list
When running test-case gdb.dwarf2/clang-debug-names.exp, I run into the
following warning:
...
(gdb) file clang-debug-names^M
Reading symbols from clang-debug-names...^M
warning: Section .debug_aranges in clang-debug-names has duplicate \
  debug_info_offset 0xc7, ignoring .debug_aranges.^M
...

This is caused by a missing return in commit 3ee6bb113a "[gdb/symtab] Fix
incomplete CU list assert in .debug_names".

Fix this by adding the missing return, such that we have instead this warning:
...
(gdb) file clang-debug-names^M
Reading symbols from clang-debug-names...^M
warning: Section .debug_aranges in clang-debug-names \
  entry at offset 0 debug_info_offset 0 does not exists, \
  ignoring .debug_aranges.^M
...
which is a known problem filed as PR25969 - "Ignoring .debug_aranges with
clang .debug_names".

Tested on x86_64-linux.

gdb/ChangeLog:

2021-02-05  Tom de Vries  <tdevries@suse.de>

	PR symtab/27307
	* dwarf2/read.c (create_cus_from_debug_names_list): Add missing
	return.

gdb/testsuite/ChangeLog:

2021-02-05  Tom de Vries  <tdevries@suse.de>

	PR symtab/27307
	* gdb.dwarf2/clang-debug-names.exp: Check file command warnings.
2021-02-05 09:14:25 +01:00
..
abbrev.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
abbrev.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
attribute.c gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx 2021-02-02 10:40:51 -05:00
attribute.h gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx 2021-02-02 10:40:51 -05:00
comp-unit.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
comp-unit.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
die.h gdb/dwarf: split dwarf2_cu::ranges_base in two 2021-02-02 10:42:11 -05:00
dwz.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dwz.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
expr.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
expr.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame-tailcall.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame-tailcall.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-cache.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-cache.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-common.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-common.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-write.c [gdb/symtab] Fix assert in write_one_signatured_type 2021-02-02 08:37:45 +01:00
index-write.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
leb.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
leb.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
line-header.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
line-header.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
loc.c Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
loc.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
macro.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
macro.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
read.c [gdb/symtab] Fix duplicate CUs in create_cus_from_debug_names_list 2021-02-05 09:14:25 +01:00
read.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
section.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
section.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
stringify.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
stringify.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00