]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Merge remote-tracking branch 'remotes/master' into users/aoliva/SFN
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 22 Sep 2017 20:00:33 +0000 (17:00 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 22 Sep 2017 20:00:33 +0000 (17:00 -0300)
Updated local changes to binutils/testsuite/binutils-all/readelf.exp
to match the unresolved (failed to assemble) messages introduced by
Alan Modra.

1  2 
binutils/dwarf.c
binutils/testsuite/binutils-all/readelf.exp
include/dwarf2.def
include/dwarf2.h

Simple merge
index 3cbc1d287ac73f58ae9873a5d332615333a1745d,6a7b5621dd0c08c6f85bb97a433d2bc14859aa44..81d180922539247893972b97d60569c76fd06d31
@@@ -379,42 -379,9 +379,36 @@@ if {![binutils_assemble $srcdir/$subdir
  }
  
  
-     perror "could not assemble locview-1 test file"
-     unresolved "readelf - failed to assemble"
-     fail "readelf --debug-dump=loc"
 +# locview - Check dumping of location lists with location views.
 +if {![binutils_assemble $srcdir/$subdir/locview-1.s tmpdir/locview-1.o]} then {
-     perror "could not assemble locview-2 test file"
-     unresolved "readelf - failed to assemble"
-     fail "readelf --debug-dump=loc"
++    unresolved "readelf --debug-dump=loc locview-1 (failed to assemble)"
 +} else {
 +
 +    if ![is_remote host] {
 +      set tempfile tmpdir/locview-1.o
 +    } else {
 +      set tempfile [remote_download host tmpdir/locview-1.o]
 +    }
 +
 +    readelf_test --debug-dump=loc $tempfile readelf.locview-1  {}
 +}
 +if {![binutils_assemble $srcdir/$subdir/locview-2.s tmpdir/locview-2.o]} then {
++    unresolved "readelf --debug-dump=loc locview-2 (failed to assemble)"
 +} else {
 +
 +    if ![is_remote host] {
 +      set tempfile tmpdir/locview-2.o
 +    } else {
 +      set tempfile [remote_download host tmpdir/locview-2.o]
 +    }
 +
 +    readelf_test --debug-dump=loc $tempfile readelf.locview-2  {}
 +}
 +
 +
  # Check that decompressed dumps work.
  if {![binutils_assemble $srcdir/$subdir/z.s tmpdir/z.o]} then {
-     perror "could not assemble decompress dump test file"
-     unresolved "readelf - failed to assemble"
-     fail "readelf -z"
+     unresolved "readelf --decompress --hex-dump .debug_loc z (failed to assemble)"
  } else {
  
      if ![is_remote host] {
@@@ -436,21 -403,20 +430,20 @@@ if ![istarget "riscv*-*-*"] then 
      }
      # Assemble the DWARF-5 test file.
      if {![binutils_assemble_flags $srcdir/$subdir/dw5.S tmpdir/dw5.o $hpux]} then {
-       perror "could not assemble dw5 test file"
-       unresolved "readelf - failed to assemble dw5"
-       return
-     }
-     # Download it.
-     if ![is_remote host] {
-       set tempfile tmpdir/dw5.o
+       unresolved "readelf -wiaoRlL dw5 (failed to assemble)"
      } else {
-       set tempfile [remote_download host tmpdir/dw5.o]
-     }
  
-     # First, determine the size, so specific output matchers can be used.
-     readelf_find_size $tempfile
+       # Download it.
+       if ![is_remote host] {
+           set tempfile tmpdir/dw5.o
+       } else {
+           set tempfile [remote_download host tmpdir/dw5.o]
+       }
+       # First, determine the size, so specific output matchers can be used.
+       readelf_find_size $tempfile
  
-     # Make sure that readelf can decode the contents.
-     readelf_test -wiaoRlL $tempfile dw5.W { nds32*-elf }
+       # Make sure that readelf can decode the contents.
 -      readelf_test -wiaoRlL $tempfile dw5.W {}
++      readelf_test -wiaoRlL $tempfile dw5.W { nds32*-elf }
+     }
  }
Simple merge
Simple merge