OSDN Git Service

* lib/file-format.exp (gcc_target_object_format): Don't
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 1999 06:55:49 +0000 (06:55 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 1999 06:55:49 +0000 (06:55 +0000)
crash if objdump is unavailable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29750 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 456123e..7245f6f 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 2d53faf..ab2b9f1 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 ]  {