aboutsummaryrefslogtreecommitdiff
path: root/lib/targetdb.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2006-05-22 06:01:35 +0000
committerBen Elliston <bje@gnu.org>2006-05-22 06:01:35 +0000
commit433e1aeb52247acb6ebed9b7ecba5077eb7a7083 (patch)
tree2123f2f4d06c24ac0e24fb9a5587363c76bfa6a5 /lib/targetdb.exp
parentb6feeb81729c431a93264a920e3d4ac93f6b96f5 (diff)
downloaddejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.zip
dejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.tar.gz
dejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.tar.bz2
* runtest.exp, baseboards/basic-sim.exp, baseboards/cf.exp,
baseboards/cris-sim.exp, baseboards/i960-cyclone.exp, baseboards/mcore-moto-sim.exp, baseboards/mips64vr4100-sim.exp, baseboards/mmixware-sim.exp, baseboards/op50n.exp, baseboards/rom68k-idp.exp, baseboards/sparclite-sim-le.exp, baseboards/usparc-cygmon.exp, config/base-config.exp, config/base68k.exp, config/ddb-ether.exp, config/ddb.exp, config/dos.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/i386-bozo.exp, config/i960.exp, config/m68k-emc.exp, config/netware.exp, config/sid.exp, config/sim.exp, config/tic80.exp, config/unix.exp, config/vxworks.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Put braces around if expressions throughout.
Diffstat (limited to 'lib/targetdb.exp')
-rw-r--r--lib/targetdb.exp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/targetdb.exp b/lib/targetdb.exp
index 3a72434..255be75 100644
--- a/lib/targetdb.exp
+++ b/lib/targetdb.exp
@@ -26,18 +26,18 @@ proc board_info { machine op args } {
verbose "board_info $machine $op $args" 3
- if [info exists target_info($machine,name)] {
+ if {[info exists target_info($machine,name)]} {
set machine $target_info($machine,name)
}
if { $op == "exists" } {
if { [llength $args] == 0 } {
- if [info exists board_info($machine,name)] {
+ if {[info exists board_info($machine,name)]} {
return 1
} else {
return 0
}
} else {
- if [info exists "board_info($machine,[lindex $args 0])"] {
+ if {[info exists "board_info($machine,[lindex $args 0])"]} {
return 1
} else {
return 0
@@ -46,7 +46,7 @@ proc board_info { machine op args } {
}
if { [llength $args] == 0 } {
verbose "getting $machine $op" 3
- if [info exists board_info($machine,$op)] {
+ if {[info exists board_info($machine,$op)]} {
return $board_info($machine,$op)
} else {
return ""
@@ -68,7 +68,7 @@ proc host_info { op args } {
proc set_board_info { entry value } {
global board_info board
- if ![info exists board_info($board,$entry)] {
+ if {![info exists board_info($board,$entry)]} {
set board_info($board,$entry) $value
}
}
@@ -80,7 +80,7 @@ proc set_currtarget_info { entry value } {
set board [target_info name]
- if ![info exists board_info($board,$entry)] {
+ if {![info exists board_info($board,$entry)]} {
set board_info($board,$entry) $value
}
}
@@ -90,7 +90,7 @@ proc set_currtarget_info { entry value } {
proc unset_board_info { entry } {
global board_info board
- if [info exists board_info($board,$entry)] {
+ if {[info exists board_info($board,$entry)]} {
unset board_info($board,$entry)
}
}
@@ -102,7 +102,7 @@ proc unset_currtarget_info { entry } {
set board [target_info name]
- if [info exists board_info($board,$entry)] {
+ if {[info exists board_info($board,$entry)]} {
unset board_info($board,$entry)
}
}