file-format.exp (gcc_target_object_format): Don't crash if objdump is unavailable.
authorMark Mitchell <mark@codesourcery.com>
Fri, 1 Oct 1999 06:55:49 +0000 (06:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 1 Oct 1999 06:55:49 +0000 (06:55 +0000)
* lib/file-format.exp (gcc_target_object_format): Don't
crash if objdump is unavailable.

From-SVN: r29750

gcc/testsuite/ChangeLog
gcc/testsuite/lib/file-format.exp

index 456123ed66d74d547403482bf48b371b11aa739a..7245f6fa9866ebac5afc150eb9c745ebd86b6e4c 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct  1 00:53:17 1999  Mark P. Mitchell  <mark@codesourcery.com>
+
+       * lib/file-format.exp (gcc_target_object_format): Don't
+       crash if objdump is unavailable.
+
 Wed Sep 29 23:48:44 1999  Donn Terry <donn@interix.com>
 
        * gcc.misc-tests/mg.exp: delete extraneous redirection.
index 2d53faf5d0db60ca0ced0e5efa64ed24c0323070..ab2b9f17f6873708d2a5f764584b6921fcae6988 100644 (file)
@@ -35,8 +35,10 @@ proc gcc_target_object_format { } {
         
         gcc_target_compile objfmtst.c objfmtst.o object ""
         
-        set output [exec $objdump_name --file-headers objfmtst.o ]
-        
+       catch {
+          set output [exec $objdump_name --file-headers objfmtst.o ]
+        } output
+
         file delete objfmtst.o
         
         if ![ regexp "file format (.*)arch" $output dummy objformat ]  {