mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
2007-03-05 H.J. Lu <hongjiu.lu@intel.com>
PR gas/3918 * lib/gas-defs.exp (gas_started): New variable. Initialized to 0. (gas_start): Set gas_started to 1. (gas_finish): Skip if gas_started is 0. Reset gas_started to 0.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2007-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR gas/3918
|
||||||
|
* lib/gas-defs.exp (gas_started): New variable. Initialized to
|
||||||
|
0.
|
||||||
|
(gas_start): Set gas_started to 1.
|
||||||
|
(gas_finish): Skip if gas_started is 0. Reset gas_started to 0.
|
||||||
|
|
||||||
2007-03-02 Paul Brook <paul@codesourcery.com>
|
2007-03-02 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
* gas/arm/relax_branch_align.d: New test.
|
* gas/arm/relax_branch_align.d: New test.
|
||||||
|
@ -53,12 +53,21 @@ proc all_ones { args } {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ${tool}_finish (gas_finish) will be called by runtest.exp. But
|
||||||
|
# gas_finish should only be used with gas_start. We use gas_started
|
||||||
|
# to tell gas_finish if gas_start has been called so that runtest.exp
|
||||||
|
# can call gas_finish without closing the wrong fd.
|
||||||
|
set gas_started 0
|
||||||
|
|
||||||
proc gas_start { prog as_opts } {
|
proc gas_start { prog as_opts } {
|
||||||
global AS
|
global AS
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
global srcdir
|
global srcdir
|
||||||
global subdir
|
global subdir
|
||||||
global spawn_id
|
global spawn_id
|
||||||
|
global gas_started
|
||||||
|
|
||||||
|
set gas_started 1
|
||||||
|
|
||||||
verbose -log "Starting $AS $ASFLAGS $as_opts $prog" 2
|
verbose -log "Starting $AS $ASFLAGS $as_opts $prog" 2
|
||||||
catch {
|
catch {
|
||||||
@ -71,9 +80,13 @@ proc gas_start { prog as_opts } {
|
|||||||
|
|
||||||
proc gas_finish { } {
|
proc gas_finish { } {
|
||||||
global spawn_id
|
global spawn_id
|
||||||
|
global gas_started
|
||||||
|
|
||||||
catch "close"
|
if { $gas_started == 1 } {
|
||||||
catch "wait"
|
catch "close"
|
||||||
|
catch "wait"
|
||||||
|
set gas_started 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proc want_no_output { testname } {
|
proc want_no_output { testname } {
|
||||||
|
Reference in New Issue
Block a user