OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [config/] [i386-bozo.exp] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#   Copyright (C) 1997 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 2 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 this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
 
17
# Please email any bugs, comments, and/or additions to this file to:
18
# DejaGnu@cygnus.com
19
 
20
load_generic_config "gdb-comm";
21
 
22
proc ${board}_init { args } {
23
    set linux_box [target_info linux_box];
24
    set bozo_server [target_info bozo_server];
25
    remote_spawn $linux_box "$bozo_server unknown";
26
    remote_expect $linux_box 60 {
27
        -re "port is (\[0-9\]+)" {
28
            set_currtarget_info netport "${linux_box}:$expect_out(1,string)";
29
        }
30
    }
31
}
32
 
33
proc ${board}_close { board } {
34
    set linux_box [board_info $board linux_box];
35
    if [board_info $linux_box exists fileid] {
36
        remote_send $linux_box "\003";
37
        remote_close $linux_box;
38
    }
39
    standard_close $board;
40
}
41
 
42
proc ${board}_reboot { board args } {
43
    remote_close $board;
44
    unset_currtarget_info netport;
45
    return 1;
46
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.