Commit c328b1d7 by Mark Mitchell Committed by Mark Mitchell

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
parent 9ed9e79a
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> Wed Sep 29 23:48:44 1999 Donn Terry <donn@interix.com>
* gcc.misc-tests/mg.exp: delete extraneous redirection. * gcc.misc-tests/mg.exp: delete extraneous redirection.
......
...@@ -35,8 +35,10 @@ proc gcc_target_object_format { } { ...@@ -35,8 +35,10 @@ proc gcc_target_object_format { } {
gcc_target_compile objfmtst.c objfmtst.o object "" 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 file delete objfmtst.o
if ![ regexp "file format (.*)arch" $output dummy objformat ] { if ![ regexp "file format (.*)arch" $output dummy objformat ] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment