aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authornitachra <Nitika.Achra@amd.com>2020-05-09 10:03:51 +0200
committerTom de Vries <tdevries@suse.de>2020-05-09 10:03:51 +0200
commit6dc55ce97db90a9e6f201d67ca05608e19287ba1 (patch)
tree3a0b0ab8ff6228d10a5fd20d1002440c3048947f /gdb/testsuite/gdb.dwarf2
parentb326e6b0deed5d5ad22767c2800f490f61b37824 (diff)
downloadfsf-binutils-gdb-6dc55ce97db90a9e6f201d67ca05608e19287ba1.zip
fsf-binutils-gdb-6dc55ce97db90a9e6f201d67ca05608e19287ba1.tar.gz
fsf-binutils-gdb-6dc55ce97db90a9e6f201d67ca05608e19287ba1.tar.bz2
Fix for the complaint observed when symbol reading due to unsupported .debug_names form
Following complaint is observed with the executable compiled with -gdwarf-5 and -gpubnames flags - "During symbol reading: Unsupported .debug_names form DW_FORM_ref4". This is the form corresponding to DW_IDX_die_offset attribute. This patch fixes this complaint. Tested with clang 10.0.0. Test case used - int main() { int sum,a,b; sum = a + b; return sum; } clang -gdwarf-5 -gpubnames test.c -o test.out gdb -q test.out -ex "set complaints 1" -ex "start" Reading symbols from test.out... During symbol reading: Unsupported .debug_names form DW_FORM_ref4 \ [in module test.out] Temporary breakpoint 1 at 0x400484 Starting program: test.out During symbol reading: Unsupported .debug_names form DW_FORM_ref4 \ [in module test.out] During symbol reading: Unsupported .debug_names form DW_FORM_ref4 \ [in module test.out] During symbol reading: Unsupported .debug_names form DW_FORM_ref4 \ [in module test.out] gdb/dwarf2/ChangeLog: 2020-05-09 Nitika Achra <Nitika.Achra@amd.com> PR symtab/25952 * read.c (dw2_debug_names_iterator::next): Handle DW_FORM_ref* and DW_IDX_die_offset. If there is no compilation unit attribute in the index entry, then there is a single CU. Return the CU at O index of compilation unit vector. gdb/testsuite/ChangeLog: 2020-05-09 Tom de Vries <tdevries@suse.de> * gdb.dwarf2/clang-debug-names.exp: Remove PR25952 kfail.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/clang-debug-names.exp13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp b/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
index 8bd6040..a6e33c1 100644
--- a/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
+++ b/gdb/testsuite/gdb.dwarf2/clang-debug-names.exp
@@ -142,15 +142,4 @@ set pass_re \
[multi_line \
$cmd \
"type = int \\(\\)"]
-set kfail_re \
- [multi_line \
- $cmd \
- "type = <unknown return type> \\(\\)"]
-gdb_test_multiple $cmd "" {
- -re -wrap $pass_re {
- pass $gdb_test_name
- }
- -re -wrap $kfail_re {
- kfail symtab/25952 $gdb_test_name
- }
-}
+gdb_test $cmd $pass_re