1#   Copyright (C) 2008-2018 Free Software Foundation, Inc.
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with GCC; see the file COPYING3.  If not see
15# <http://www.gnu.org/licenses/>.
16
17# Necessary procs and fallbacks for functionality not present in
18# pristine dejagnu-1.4.4.  Make sure overrides here work with updated
19# dejagnu too.
20
21# The absence of sim_download will cause e.g. the libstdc++ testsuite
22# to expose about 59 more FAILs on simulator targets supporting
23# fileio.
24
25if { [info procs sim_download] == "" } {
26    proc sim_download { dest file args } {
27	return [remote_download host $file $args]
28    }
29}
30
31if { [info procs sim_upload] == "" } {
32    proc sim_upload { dest srcfile args } {
33	return [remote_upload host $srcfile $args]
34    }
35}
36