aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/dwarf2/read.c1
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.dwarf2/clang-debug-names.exp16
4 files changed, 28 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 75584a7..94b5c7a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2021-02-05 Tom de Vries <tdevries@suse.de>
+ PR symtab/27307
+ * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
+ return.
+
+2021-02-05 Tom de Vries <tdevries@suse.de>
+
* dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2021-02-04 Mike Frysinger <vapier@gentoo.org>
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index eb05851..f60e418 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -5350,6 +5350,7 @@ create_cus_from_debug_names_list (dwarf2_per_bfd *per_bfd,
sect_off, 0);
per_bfd->all_comp_units.push_back (per_cu);
}
+ return;
}
sect_offset sect_off_prev;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a449de0..01539a6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-05 Tom de Vries <tdevries@suse.de>
+
+ PR symtab/27307
+ * gdb.dwarf2/clang-debug-names.exp: Check file command warnings.
+
2021-02-04 Shahab Vahedi <shahab@synopsys.com>
* gdb.xml/tdesc-regs.exp: Use correct core-regs for ARC.
diff --git a/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp b/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
index 12134cf..5548b30 100644
--- a/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
+++ b/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
@@ -33,6 +33,22 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
return -1
}
+set test "no file command warnings"
+if { [regexp "warning: " $gdb_file_cmd_msg] } {
+ set kfail_re \
+ [concat \
+ "warning: Section .debug_aranges in \[^\r\n\]* entry" \
+ "at offset 0 debug_info_offset 0 does not exists," \
+ "ignoring \\.debug_aranges\\."]
+ if { [regexp $kfail_re $gdb_file_cmd_msg] } {
+ kfail symtab/25969 $test
+ } else {
+ fail $test
+ }
+} else {
+ pass $test
+}
+
set cmd "ptype main"
set pass_re \
[multi_line \