Move C++ internals to prefixed names in dejagnu.h
[dejagnu.git] / config / sid.exp
blob77f18278552ee0f61a08108e7ac16367df8a1bde
1 # Copyright (C) 1992-2016 Free Software Foundation, Inc.
3 # This file is part of DejaGnu.
5 # DejaGnu is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # DejaGnu is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with DejaGnu; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 # Routines for loading and running programs on a SID simulator.
20 # Written by Ben Elliston <bje@cygnus.com>.
22 # See default.exp for explanation of arguments and results.
24 load_generic_config "sim"
26 # Treat sid as a remote board
27 set_board_info use_gdb_stub 1
29 # The simulator doesn't return exit statuses and we need to indicate this;
30 # the standard GCC wrapper will work with this target.
31 set_board_info needs_status_wrapper 1
33 # Doesn't pass signals and can't return results.
34 set_board_info gdb,nosignals 1
35 set_board_info gdb,noresults 1
37 # Don't expect interrupts to work in gdb testsuite
38 proc set_host_info { entry value } {
39 global target_info board_info
40 verbose "set_host_info $entry $value" 3
42 set machine host
43 if {[info exists target_info($machine,name)]} {
44 set machine $target_info($machine,name)
46 set board_info($machine,$entry) $value
48 set_host_info gdb,nointerrupts 1
50 # Cannot pass command line arguments
51 set_board_info noargs 1
53 # Configure TCP/IP connection to sid
54 set_board_info connect telnet
55 set_board_info netport localhost:[expr {3000 + [clock clicks] % 2000}]
56 set_board_info gdb,big_rx_buffers 1
57 set_board_info gdb_protocol "remote"
58 # ... or "async" or "extended-remote" or "extended-async"
60 # No multilib options needed by default.
61 process_multilib_options ""
63 # We only support newlib on this target. We assume that all multilib
64 # options have been specified before we get here.
65 set_board_info compiler "[find_gcc]"
66 set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
67 set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
68 # No linker script needed.
69 set_board_info ldscript ""
71 # Used by a few gdb tests. SID doesn't allow hardware watchpoints.
72 set_board_info gdb,no_hardware_watchpoints 1
74 # Additional sid options
75 # eg:
77 # set_board_info sim,options "--mksid"