aboutsummaryrefslogtreecommitdiff
path: root/lib/targetdb.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2016-03-28 11:51:41 +1100
committerBen Elliston <bje@gnu.org>2016-03-28 11:51:41 +1100
commit883ffd3e6dcedfccb39969fd9791e70c901410ec (patch)
treec9026d0e7d39068361acf297d37b88725eae6b8a /lib/targetdb.exp
parenta57bfcfb68c3ac388a5ba5b2baca8e8c1195690b (diff)
downloaddejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.zip
dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.gz
dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.bz2
* runtest.exp: Fixes identified by the Frink static analyser:
(1) use -- in switch commands for safety, (2) remove unreachable return commands after error commands, (3) replace abbreviated "info proc" with "info procs", (4) use -- in unset commands for safety where the variable name is itself a variable. * lib/dg.exp: Likewise. * lib/debugger.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/targetdb.exp: Likewise. * lib/telnet.exp: Likewise. * lib/utils.exp: Likewise.
Diffstat (limited to 'lib/targetdb.exp')
-rw-r--r--lib/targetdb.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/targetdb.exp b/lib/targetdb.exp
index e29886e..c92573d 100644
--- a/lib/targetdb.exp
+++ b/lib/targetdb.exp
@@ -33,7 +33,7 @@ proc board_info { machine op args } {
if { [llength $args] == 0 } {
return [info exists board_info($machine,name)]
} else {
- return [info exists "board_info($machine,[lindex $args 0])"]
+ return [info exists board_info($machine,[lindex $args 0])]
}
}
if { [llength $args] == 0 } {