Switch the inferior too in switch_to_program_space_and_thread
[deliverable/binutils-gdb.git] / sim / common / gennltvals.sh
... / ...
CommitLineData
1#! /bin/sh
2# Generate nltvals.def, a file that describes various newlib/libgloss
3# target values used by the host/target interface.
4#
5# Syntax: /bin/sh gennltvals.sh shell srcroot cpp
6
7shell=$1
8srcroot=$2
9cpp=$3
10
11srccom=$srcroot/sim/common
12if [ -d "${srcroot}/newlib" ]; then
13 # If newlib is manually in the same source tree, use it.
14 newlibroot=${srcroot}
15else
16 # Else assume it's alongside the gdb/binutils repo.
17 newlibroot=${srcroot}/../newlib
18fi
19
20echo '/* Newlib/libgloss macro values needed by remote target support. */'
21echo '/* This file is machine generated by gennltvals.sh. */'
22
23$shell ${srccom}/gentvals.sh "" errno ${newlibroot}/newlib/libc/include \
24 "errno.h sys/errno.h" 'E[[:upper:][:digit:]]*' "${cpp}"
25
26$shell ${srccom}/gentvals.sh "" signal ${newlibroot}/newlib/libc/include \
27 "signal.h sys/signal.h" 'SIG[[:upper:][:digit:]]*' "${cpp}"
28
29$shell ${srccom}/gentvals.sh "" open ${newlibroot}/newlib/libc/include \
30 "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[[:upper:][:digit:]]*' "${cpp}"
31
32# Unfortunately, each newlib/libgloss port has seen fit to define their own
33# syscall.h file. This means that system call numbers can vary for each port.
34# Support for all this crud is kept here, rather than trying to get too fancy.
35# If you want to try to improve this, please do, but don't break anything.
36# Note that there is a standard syscall.h file (libgloss/syscall.h) now which
37# hopefully more targets can use.
38
39dir=libgloss target=bfin
40$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
41 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
42
43dir=newlib/libc/sys/d10v/sys target=d10v
44$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
45 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
46
47# OBSOLETE dir=libgloss target=d30v
48# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
49# OBSOLETE "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
50
51dir=libgloss/cr16/sys target=cr16
52$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
53 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
54
55dir=libgloss target=fr30
56$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
57 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
58
59dir=libgloss target=frv
60$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
61 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
62
63dir=libgloss/i960 target=i960
64$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
65 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
66
67dir=libgloss target=m32r
68$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
69 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
70
71dir=libgloss/mcore target=mcore
72$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
73 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
74
75dir=libgloss target=mn10200
76$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
77 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
78
79dir=libgloss target=mn10300
80$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
81 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
82
83dir=libgloss target=msp430
84$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
85 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
86
87dir=libgloss target=sparc
88$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
89 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
90
91dir=libgloss/v850/sys target=v850
92$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
93 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
94
95dir=libgloss target=lm32
96$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
97 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
98
99dir=libgloss target=pru
100$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
101 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
This page took 0.023598 seconds and 4 git commands to generate.