sim: nrun: decode signal when crashing
[deliverable/binutils-gdb.git] / sim / common / gennltvals.sh
CommitLineData
c906108c
SS
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
12
13echo '/* Newlib/libgloss macro values needed by remote target support. */'
14echo '/* This file is machine generated by gennltvals.sh. */'
15
16$shell ${srccom}/gentvals.sh "" errno ${srcroot}/newlib/libc/include \
17 "errno.h sys/errno.h" 'E[A-Z0-9]*' "${cpp}"
18
19$shell ${srccom}/gentvals.sh "" signal ${srcroot}/newlib/libc/include \
20 "signal.h sys/signal.h" 'SIG[A-Z0-9]*' "${cpp}"
21
22$shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
165b70ea 23 "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[A-Z0-9]*' "${cpp}"
c906108c
SS
24
25# Unfortunately, each newlib/libgloss port has seen fit to define their own
26# syscall.h file. This means that system call numbers can vary for each port.
27# Support for all this crud is kept here, rather than trying to get too fancy.
28# If you want to try to improve this, please do, but don't break anything.
29# Note that there is a standard syscall.h file (libgloss/syscall.h) now which
30# hopefully more targets can use.
31
ef016f83
MF
32dir=libgloss target=bfin
33$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
34 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
35
c906108c
SS
36dir=newlib/libc/sys/d10v/sys target=d10v
37$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
38 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
39
3fbeef0b
AC
40# OBSOLETE dir=libgloss target=d30v
41# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
42# OBSOLETE "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
c906108c 43
2a3591b0
SR
44dir=libgloss target=cr16
45$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
46 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
47
c906108c
SS
48dir=libgloss target=fr30
49$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
50 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
51
33319edb
DB
52dir=libgloss target=frv
53$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
54 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
55
c906108c
SS
56dir=libgloss/i960 target=i960
57$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
58 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
59
60dir=libgloss target=m32r
61$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
62 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
63
64dir=libgloss target=mn10200
65$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
66 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
67
68dir=libgloss target=mn10300
69$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
70 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
71
72dir=libgloss target=sparc
73$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
74 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
75
76dir=libgloss/v850/sys target=v850
77$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
78 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
33319edb 79
c28c63d8
JB
80dir=libgloss target=lm32
81$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
82 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
This page took 0.553958 seconds and 4 git commands to generate.