diff options
author | Nick Clifton <nickc@redhat.com> | 2022-06-27 11:48:24 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-06-27 11:49:14 +0100 |
commit | a3f1431a5087445ec3987d38b5ee37bcb802214c (patch) | |
tree | bb628b59bdad6582504286099389ec532c4267fb /binutils/testsuite | |
parent | 2135495484109f888167287cca249be9d84ed535 (diff) | |
download | gdb-a3f1431a5087445ec3987d38b5ee37bcb802214c.zip gdb-a3f1431a5087445ec3987d38b5ee37bcb802214c.tar.gz gdb-a3f1431a5087445ec3987d38b5ee37bcb802214c.tar.bz2 |
Stop bogus warnings about DWARF indexed string offsets being too big.
* dwarf.c (fetch_indexed_string): Do not use length of first table
in string section as the length of every table in the section.
* testsuite/binutils-all/pr26112.r: Update expected output.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/pr26112.r | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/testsuite/binutils-all/pr26112.r b/binutils/testsuite/binutils-all/pr26112.r index b82b060..f284413 100644 --- a/binutils/testsuite/binutils-all/pr26112.r +++ b/binutils/testsuite/binutils-all/pr26112.r @@ -6,8 +6,10 @@ Contents of the .debug_macro section: Offset into .debug_line: 0x0 DW_MACRO_start_file - lineno: 0 filenum: 1 - DW_MACRO_define_strx lineno : 1 macro : FOO bar + DW_MACRO_define_strx lineno : 1 macro : - DW_MACRO_end_file + DW_MACRO_define_strx lineno : 0 macro : /home/tstellar/llvm-project/clang-build + DW_MACRO_define_strx lineno : 0 macro : FOO bar DW_MACRO_define_strx lineno : 0 macro : __llvm__ 1 DW_MACRO_define_strx lineno : 0 macro : __clang__ 1 DW_MACRO_define_strx lineno : 0 macro : __clang_major__ 11 @@ -346,5 +348,3 @@ Contents of the .debug_macro section: DW_MACRO_define_strx lineno : 0 macro : __STDC__ 1 DW_MACRO_define_strx lineno : 0 macro : __STDC_HOSTED__ 1 DW_MACRO_define_strx lineno : 0 macro : __STDC_VERSION__ 201710L - DW_MACRO_define_strx lineno : 0 macro : __STDC_UTF_16__ 1 - DW_MACRO_define_strx lineno : 0 macro : __STDC_UTF_32__ 1 |