Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sim/common/gennltvals.sh

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sim/common/configure ('k') | sim/common/gentmap.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 # Generate nltvals.def, a file that describes various newlib/libgloss 2 # Generate nltvals.def, a file that describes various newlib/libgloss
3 # target values used by the host/target interface. 3 # target values used by the host/target interface.
4 # 4 #
5 # Syntax: /bin/sh gennltvals.sh shell srcroot cpp 5 # Syntax: /bin/sh gennltvals.sh shell srcroot cpp
6 6
7 shell=$1 7 shell=$1
8 srcroot=$2 8 srcroot=$2
9 cpp=$3 9 cpp=$3
10 10
11 srccom=$srcroot/sim/common 11 srccom=$srcroot/sim/common
12 12
13 echo '/* Newlib/libgloss macro values needed by remote target support. */' 13 echo '/* Newlib/libgloss macro values needed by remote target support. */'
14 echo '/* This file is machine generated by gennltvals.sh. */' 14 echo '/* This file is machine generated by gennltvals.sh. */'
15 15
16 $shell ${srccom}/gentvals.sh "" errno ${srcroot}/newlib/libc/include \ 16 $shell ${srccom}/gentvals.sh "" errno ${srcroot}/newlib/libc/include \
17 » "errno.h sys/errno.h" 'E[A-Z0-9]*' "${cpp}" 17 » "errno.h sys/errno.h" 'E[[:upper:][:digit:]]*' "${cpp}"
18 18
19 $shell ${srccom}/gentvals.sh "" signal ${srcroot}/newlib/libc/include \ 19 $shell ${srccom}/gentvals.sh "" signal ${srcroot}/newlib/libc/include \
20 » "signal.h sys/signal.h" 'SIG[A-Z0-9]*' "${cpp}" 20 » "signal.h sys/signal.h" 'SIG[[:upper:][:digit:]]*' "${cpp}"
21 21
22 $shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \ 22 $shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
23 » "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[A-Z0-9]*' "${cpp}" 23 » "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[[:upper:][:digit:]]*' "${ cpp}"
24 24
25 # Unfortunately, each newlib/libgloss port has seen fit to define their own 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. 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. 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. 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 29 # Note that there is a standard syscall.h file (libgloss/syscall.h) now which
30 # hopefully more targets can use. 30 # hopefully more targets can use.
31 31
32 dir=libgloss target=bfin 32 dir=libgloss target=bfin
33 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 33 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
34 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 34 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
35 35
36 dir=newlib/libc/sys/d10v/sys target=d10v 36 dir=newlib/libc/sys/d10v/sys target=d10v
37 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 37 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
38 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 38 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
39 39
40 # OBSOLETE dir=libgloss target=d30v 40 # OBSOLETE dir=libgloss target=d30v
41 # OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 41 # OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
42 # OBSOLETE » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 42 # OBSOLETE » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
43 43
44 dir=libgloss target=cr16 44 dir=libgloss target=cr16
45 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 45 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
46 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 46 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
47 47
48 dir=libgloss target=fr30 48 dir=libgloss target=fr30
49 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 49 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
50 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 50 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
51 51
52 dir=libgloss target=frv 52 dir=libgloss target=frv
53 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 53 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
54 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 54 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
55 55
56 dir=libgloss/i960 target=i960 56 dir=libgloss/i960 target=i960
57 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 57 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
58 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 58 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
59 59
60 dir=libgloss target=m32r 60 dir=libgloss target=m32r
61 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 61 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
62 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 62 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
63 63
64 dir=libgloss target=mn10200 64 dir=libgloss target=mn10200
65 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 65 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
66 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 66 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
67 67
68 dir=libgloss target=mn10300 68 dir=libgloss target=mn10300
69 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 69 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
70 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 70 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
71 71
72 dir=libgloss target=sparc 72 dir=libgloss target=sparc
73 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 73 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
74 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 74 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
75 75
76 dir=libgloss/v850/sys target=v850 76 dir=libgloss/v850/sys target=v850
77 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 77 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
78 » "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 78 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
79 79
80 dir=libgloss target=lm32 80 dir=libgloss target=lm32
81 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ 81 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
82 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" 82 » "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
OLDNEW
« no previous file with comments | « sim/common/configure ('k') | sim/common/gentmap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698