file-format.exp (gcc_target_object_format): Don't crash if objdump is unavailable.

* lib/file-format.exp (gcc_target_object_format): Don't
	crash if objdump is unavailable.

From-SVN: r29750
This commit is contained in:
Mark Mitchell 1999-10-01 06:55:49 +00:00 committed by Mark Mitchell
parent 9ed9e79a15
commit c328b1d7d5
2 changed files with 9 additions and 2 deletions

View 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.

View 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 ] {