You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.7 KiB

* configure.ac, dejagnu.h, runtest, runtest.exp, baseboards/am33_2.0-libremote.exp, baseboards/androideabi.exp, baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-mti32.exp, baseboards/mips-sim-mti64.exp, baseboards/mips-sim-mti64_64.exp, baseboards/mips-sim-mti64_n32.exp, baseboards/mips-sim-sde32.exp, baseboards/mips-sim-sde64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/moxie-sim.exp, baseboards/mt-sid.exp, baseboards/multi-sim.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/visium-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/ftp.exp, lib/kermit.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/adb.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp: Update copyright date for 2016. Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
# Copyright (C) 1992-2016 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
26 years ago
# (at your option) any later version.
#
# DejaGnu is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
26 years ago
# You should have received a copy of the GNU General Public License
# along with DejaGnu; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
26 years ago
# Searches in the appropriate place (the board_info array) for the specified
# information.
#
proc board_info { machine op args } {
global target_info
global board_info
verbose "board_info $machine $op $args" 3
if {[info exists target_info($machine,name)]} {
set machine $target_info($machine,name)
26 years ago
}
if { $op == "exists" } {
if { [llength $args] == 0 } {
return [info exists board_info($machine,name)]
26 years ago
} else {
return [info exists board_info($machine,[lindex $args 0])]
26 years ago
}
}
if { [llength $args] == 0 } {
verbose "getting $machine $op" 3
if {[info exists board_info($machine,$op)]} {
return $board_info($machine,$op)
26 years ago
} else {
return ""
}
}
return ""
26 years ago
}
proc target_info { op args } {
return [eval "board_info target \"$op\" $args"]
26 years ago
}
proc host_info { op args } {
return [eval "board_info host \"$op\" $args"]
26 years ago
}
# Set ENTRY to VALUE for the current board.
26 years ago
#
proc set_board_info { entry value } {
global board_info board
if {![info exists board_info($board,$entry)]} {
set board_info($board,$entry) $value
26 years ago
}
}
#
# Append VALUE to ENTRY for the current board.
#
proc add_board_info { entry value } {
global board_info board
lappend board_info($board,$entry) $value
}
26 years ago
# Fill in ENTRY with VALUE for the current target.
#
proc set_currtarget_info { entry value } {
global board_info
26 years ago
set board [target_info name]
26 years ago
if {![info exists board_info($board,$entry)]} {
set board_info($board,$entry) $value
26 years ago
}
}
# Unset ENTRY for the current board being defined.
#
proc unset_board_info { entry } {
global board_info board
26 years ago
if {[info exists board_info($board,$entry)]} {
unset board_info($board,$entry)
26 years ago
}
}
# Unset ENTRY for the current board being defined.
#
proc unset_currtarget_info { entry } {
global board_info
26 years ago
set board [target_info name]
26 years ago
if {[info exists board_info($board,$entry)]} {
unset board_info($board,$entry)
26 years ago
}
}